WordPress.org

Ready to get started?Download WordPress

Forums

Ambrosite Next/Previous Post Link Plus
[resolved] Restrict to Same Parent (2 posts)

  1. Baden
    Member
    Posted 1 year ago #

    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: http://pastebin.com/eUPtLdPR

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

    http://wordpress.org/extend/plugins/ambrosite-nextprevious-post-link-plus/

  2. ambrosite
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic