Support » Fixing WordPress » Displaying posts of one child in a category

  • 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:

    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.

Viewing 1 replies (of 1 total)
  • 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:

    Could you give us some code to look at?

Viewing 1 replies (of 1 total)
  • The topic ‘Displaying posts of one child in a category’ is closed to new replies.