Title: Add post_type as a parameter
Last modified: August 20, 2016

---

# Add post_type as a parameter

 *  [Anda Pop](https://wordpress.org/support/users/andapop/)
 * (@andapop)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/add-post_type-as-a-parameter/)
 * Hello,
 * I think you might add `post_type` as a parameter. It could default to current
   post `post_type`.
    But i would also like to be able to specify all/some `post_type`(
   s). This way, if i have for example Events and normal Posts in the same category,
   i could choose to have a navigation that allows me to go to the prev/next event
   in same category (the way it is now), OR go to prev/next post of the specified`
   post_type`(s) in the same category.
 * Thank you
 * This is a really nice plugin 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [ambrosite](https://wordpress.org/support/users/ambrosite/)
 * (@ambrosite)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/add-post_type-as-a-parameter/#post-2200065)
 * andapop,
 * Thanks for your feedback. Right now, the function does indeed default to the 
   current post post_type, however it should be a simple enough matter to add a 
   post_type parameter as you suggest. I’ll add that feature to the next version
   of the plugin.
 *  Plugin Author [ambrosite](https://wordpress.org/support/users/ambrosite/)
 * (@ambrosite)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/add-post_type-as-a-parameter/#post-2200242)
 * I have added the post_type parameter to version 2.3 as requested:
 * [http://wordpress.org/extend/plugins/ambrosite-nextprevious-post-link-plus/](http://wordpress.org/extend/plugins/ambrosite-nextprevious-post-link-plus/)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Add post_type as a parameter’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ambrosite-nextprevious-post-link-
   plus.svg)
 * [Ambrosite Next/Previous Post Link Plus](https://wordpress.org/plugins/ambrosite-nextprevious-post-link-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ambrosite-nextprevious-post-link-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ambrosite-nextprevious-post-link-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/ambrosite-nextprevious-post-link-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ambrosite-nextprevious-post-link-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ambrosite-nextprevious-post-link-plus/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ambrosite](https://wordpress.org/support/users/ambrosite/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/add-post_type-as-a-parameter/#post-2200242)
 * Status: not resolved