SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Designer
    Join Date
    Jun 2006
    Location
    Manila
    Posts
    590
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom post type-specific prev and next post links?

    Does anyone know how this can be done? Basically it's no different than the standard previous/next entry links, but this time, the links only show the entries for the post type it's classified in.

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You don't have to change the prev/next links but the query that determines what posts to show.

    Use query_posts in your template file to do that, before The Loop:

    http://codex.wordpress.org/Function_...ce/query_posts

    You can specify post type and there are examples for adhering to paging rules in that page.

  3. #3
    Designer
    Join Date
    Jun 2006
    Location
    Manila
    Posts
    590
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cheers dan. I should try it out.

    I guess if all else fails, there's always the category filter option.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •