WordPress.org

Ready to get started?Download WordPress

Forums

!!!! Excluding/Including Categories from next_post_link, Single Page Navigation (2 posts)

  1. gmisen
    Member
    Posted 5 years ago #

    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!!

  2. gmisen
    Member
    Posted 5 years ago #

    halp?

Topic Closed

This topic has been closed to new replies.

About this Topic