Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter andy-with-love

    (@andy-with-love)

    like <?php next_post_link(); ?> but for CataBlog categories

    any one?

    Plugin Author macguru2000

    (@macguru2000)

    did you try <?php next_post_link(); ?> or something like it. I believe CataBlog uses the taxonomy name of catablog-term and you should be able to pass that along as a parameter to a built in WordPress function. Public CataBlog items are pretty much exactly the same as a post when the code is concerned.

    Thread Starter andy-with-love

    (@andy-with-love)

    <?php next_post_link(); ?> works but i want to have only items that are from the same catablog category.

    eg.
    Cats page 2
    << Cats page 1 Cats page 3 >>

    not
    Dogs page 2
    << Dogs page 1 Cats page 1 >>

    if i put in <?php next_post_link(); ?> it will link all items from all categorys, hope you follow 🙂

    Plugin Author macguru2000

    (@macguru2000)

    Not sure if you have already checked out this page, but if you haven’t you should: http://codex.wordpress.org/Function_Reference/next_post_link

    The third parameter in next_post_link() lets you set wether it should be in the same category or not. I am unsure if this supports custom post types, but it is worth a shot. Good luck.

    Try something like this:

    <?php next_post_link('%link &raquo;', '%title', true); ?>

    Not sure if this is what you are trying to do but I can confirm that the third parameter for next_post_link (“in_same_cat”) does NOT work for Custom Post Types.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: CataBlog] Link to the next item in the same category?’ is closed to new replies.