Support » Plugin: Ambrosite Next/Previous Post Link Plus » Restrict to Same Parent

  • Resolved Baden


    Great plugin, great support… like your style, Dude.
    I added a little patch that allows the prev/next posts to be restricted to the same parent using a new 'same_parent' => true parameter. This is useful when you want to skip child posts, especially if they are of the red-headed step-child variety.

    The modified ambrosite-post-link-plus.php file can be viewed/downloaded from pastbin:

    Again, great plugin (have marked it top stars)… hopefully you will consider including the same_parent parameter in the next release.

Viewing 1 replies (of 1 total)
  • Plugin Author ambrosite


    Thanks for the kind words, and for your contribution. I have an in_same_parent parameter in my Page Link Plus plugin that is coded almost identical to your example. I probably would not add this to Post Link Plus, because traditionally posts do not have hierarchical organization — pages do (I know custom post types have muddied the waters somewhat). But I am sure that anyone who wants to hack Post Link Plus to add this feature will find your code helpful.

Viewing 1 replies (of 1 total)
  • The topic ‘Restrict to Same Parent’ is closed to new replies.