Skip to:
Content
Pages
Categories
Search
Top
Bottom

Make Main Blog Page Show Excerpts


  • gregfielding
    Participant

    @gregfielding

    Guys,

    I’m using a minimally-tweaked child theme for BP 1.2.1 and I’d like to have the main blog page show excerpts instead of whole posts.

    That way, I could more easily feature 10 posts or so without the reader having to scroll down so much or flip through pages.

    What’s the easiest way to do this?

Viewing 3 replies - 1 through 3 (of 3 total)

  • r-a-y
    Keymaster

    @r-a-y

    Child theme.

    It’s my favorite new two words.

    Copy /bp-themes/bp-default/index.php over to your child theme.

    Edit the_content() to the_excerpt().


    pcwriter
    Participant

    @pcwriter

    @r-a-y

    I’ve been trying to add a call for the excerpt for each “Latest Post” in blogs-loop.php (“Blogs” subtab in member profile) but, as I’m a php noob, I wind up with excerpts from ALL posts. (At least I got something. :-) )

    Would you happen to know how I can get just the excerpt for each corresponding Latest Post to show?

    Any help is appreciated!


    Nahum
    Participant

    @nahummadrid

    was there an update here…was just trying this with something like this – but no luck

    bp_get_blog_latest_post_excerpt() {
    global $blogs_template;

    if ( null == $blogs_template->blog->latest_post )
    return false;

    return apply_filters( ‘bp_get_blog_latest_post_excerpt’, sprintf( __( ”, ‘buddypress’ ), ” . apply_filters( ‘the_excerpt’, $blogs_template->blog->latest_post->post_excerpt ) . ” ) );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Make Main Blog Page Show Excerpts’ is closed to new replies.
Skip to toolbar