Skip to:

Content only in the first post… ?

  • seppolaatle112


    First I want to say Happy New Year everyone.! :)

    I am thinking about this “Recent Blog Posts-widget.” If I for example choose to view 30 posts with this one, only the first one contain some of the blog post content.

    What can I do to show the content in all of the 30 I’ve chosen to view on the main page? I would like this because it’s more information for Google (SEO,) and because I think it will look a lot better on my site with content in all the posts, and not just the first one. Maybe anyone knows what I can do to get this widget the way i want?

    – Sorry for my bad english, and again, Happy New Year everyone. ;)

Viewing 1 replies (of 1 total)

  • wabugi


    I know this post is 8 months old. But maybe there are still people looking for the answer. And here is is:

    open wp-content/plugins/buddypress/bp-blogs/bp-blogs-widgets.php

    Look for these lines:

    <?php if ( !$counter ) : ?>

    <div class=”item-content”><?php echo bp_create_excerpt($post->post_content) ?></div>

    <?php endif; ?>

    Now remove the loop. It should now look like this:

    <div class=”item-content”><?php echo bp_create_excerpt($post->post_content) ?></div>

    The widget will now display an exerpt of every blog post.

Viewing 1 replies (of 1 total)
  • The topic ‘Content only in the first post… ?’ is closed to new replies.
Skip to toolbar