Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Recent Posts

  • Profile photo of sn0zb0z
    sn0zb0z
    Participant

    @sn0zb0z

    I have a page with all the recent posts on and an archive, but it shows the content for each post and I don’t want it to (I just want title, author, date and category). I would like a summary/excerpt/short description to show, but not the main content.

    I did find a theme that removed it but now I’ve installed BuddyPress not all features work with this theme. So how can I shorten the posts on the recent posts and archives pages?

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Profile photo of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    Find out what template you’re using for that page and then go into your template editor: dashboard > appearance > editor and find the template.

    Switch: the_content();
    to: the_excerpt();

    Profile photo of sn0zb0z
    sn0zb0z
    Participant

    @sn0zb0z

    Thanks. I’m using the Buddypress default theme. Where abouts under editor does it say the_content();? I can’t find it.

    Also, if I change the theme will I have to switch that again?

    Profile photo of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    Ummm, well in that case you shouldn’t have to edit anything. Try this: In your Dashboard, go to: Settings > Reading and look for the option that says “For each article in a feed, show:” and gives you two options: “Full text” and “Summary”. Make sure it’s switched to “Summary”, if not then change it and check your page.

    Profile photo of sn0zb0z
    sn0zb0z
    Participant

    @sn0zb0z

    It’s already on summary.

    Profile photo of @mercime
    @mercime
    Moderator

    @mercime

    @sn0zb0z

    1. create a child theme of the BP Default theme https://codex.buddypress.org/legacy/building-a-buddypress-child-theme/

    2. copy over index.php from BP Default theme into your child theme folder and change the_content to the_excerpt

     

    Profile photo of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    Also, here’s an image that will show you what you’re looking for: https://i.imgur.com/baPYq.png

    Profile photo of sn0zb0z
    sn0zb0z
    Participant

    @sn0zb0z

    Thankyou to both of you :) That image really helped and solved the problem.

    Profile photo of JRCDyer
    JRCDyer
    Participant

    @jrcdyer

    You’re welcome. Glad you got it sorted.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Recent Posts’ is closed to new replies.
Skip to toolbar