Skip to:
Content
Pages
Categories
Search
Top
Bottom

Recent Posts Loop for Profiles.


  • enderpal444
    Participant

    @enderpal444

    How can I set up a loop on the profile pages for my members of their latest posts? Preferably I’d like to set up a loop that runs in the sidebar for their profile pages and personal activity streams. The posts are mostly videos so it’s just a matter of showing a thumb and a title for each post.

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

  • r-a-y
    Keymaster

    @r-a-y

    First, if you want to customize the BuddyPress Default theme, please build a child theme so your customizations won’t be wiped out when you upgrade BuddyPress:
    https://codex.buddypress.org/theme-development/building-a-buddypress-child-theme/

    Secondly, once you’ve created your child theme, copy over /plugins/buddypress/bp-themes/bp-default/members/single/home.php to your theme’s folder.

    Make sure you preserve the folder structure:
    /wp-content/themes/MYCHILDTHEME/members/single/home.php

    Then, you can add a regular posts loop from WordPress in your /members/single/home.php:
    https://codex.wordpress.org/Function_Reference/query_posts


    enderpal444
    Participant

    @enderpal444

    Oh ok awesome. I already have a child theme. I guess my question now is what changes do I make to the basic loop structure that will make it show the posts of the member. Like how I set my current loops to categories. How do I setup the query string for that? I didn’t see how to do that in the link.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Recent Posts Loop for Profiles.’ is closed to new replies.
Skip to toolbar