WordPress.org

Ready to get started?Download WordPress

Forums

Displaying posts of one child in a category (2 posts)

  1. bdellarosa
    Member
    Posted 1 year ago #

    I've been stumped on this for a few days now and haven't had much luck combing through the support forums or on google.

    I have a single.php file that displays a profile of a company:

    http://s15838843.onlinehome-server.com/wordpress/argentina-partner-1/

    With in this profile there are videos posted about this parter. I currently have it set up that the video thumbnails will be displayed via a featured image that when clicked will take you to a posted page with that video in which people can comment on it.

    These featured images are being called in a loop of the category title of "Video", I have a child category set up for all the partners: argentina partner #1, #2, #3 etc. However I'm getting all of the children of the parent category of "Video" being looped into this area.

    How can I target videos for a specific partner to appear only on their respective page.

  2. Red Deer Web Design
    Member
    Posted 1 year ago #

    Hey bdellarosa,

    I'm not 100% sure where you're going with this... but here are some starting ideas....

    From what I get, you have multiple partner pages (which anyone can access?) and they all use the same single.php - calling the category/children for the videos...

    You could define in your loop something that only calls the 1st child, or one child category deep? Perhaps look at the codex for some ideas here:
    http://codex.wordpress.org/Template_Tags/wp_list_categories

    Could you give us some code to look at?

Topic Closed

This topic has been closed to new replies.

About this Topic