Skip to:
Content
Pages
Categories
Search
Top
Bottom

Recent Sitewide Posts

  • Profile photo of slicktig1
    slicktig1
    Participant

    @slicktig1

    I am in need of help to tweak the recent sitewide posts little bit. Currently it shows excerpts from 1st post only and rest of them shows link,author and blog from. How to modify it to show excepts from all ? For eg. If i’ve set the widget to show 5, I would like all 5 to have except. pls help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Profile photo of slicktig1
    slicktig1
    Participant

    @slicktig1

    Hi, Can someone help me to locate the code for recent sitewide posts? I would like to show post except or content from all the recent posts instead of simply listing the post title and author. appreciate your help. thanks

    Profile photo of Brajesh Singh
    Brajesh Singh
    Participant

    @sbrajesh

    hi

    Have a look at buddypress/bp-blogs/bp-blogs-widgets.php,you will see the code for recent sitewide posts there.

    and here is what you need to do.

    on line 44-46 you will see something like this

    <?php if ( !$counter ) : ?>
    <div class="item-content"><?php echo bp_create_excerpt($post->post_content) ?></div>
    <?php endif; ?>

    Change this to

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

    Hopefully,It will help.

    Another way,copy the widget code,modify it and create your own widget to preserve in future updates.

    regards

    Brajesh

    Profile photo of slicktig1
    slicktig1
    Participant

    @slicktig1

    Thank you Brajesh. However it appears cluttered due to images in post. How to exclude images from showing up ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Recent Sitewide Posts’ is closed to new replies.