WordPress.org

Support

Support » Themes and Templates » !!!! Excluding/Including Categories from next_post_link, Single Page Navigation

!!!! Excluding/Including Categories from next_post_link, Single Page Navigation

  • Please Help!!!

    And thanks for looking.

    I don’t know how to write what I want to do in php

    This concerns the top navigation on the single page templates

    If the post is not a child of parent category 81 the next_post_link and previous_post_link will take you through every post except all the children of id=81

    if the post is in category 76,74,65,68,66,67 or 75 (the children categories of 81) the next_post_link and previous_post_link will only list posts in the same category as the post you are viewing.

    I know there must be a way to do it, but my php grammar is not right and keeps breaking my page…..

    whats the best way to write this?

    Thanks!!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘!!!! Excluding/Including Categories from next_post_link, Single Page Navigation’ is closed to new replies.