I'm after a wordpress function that can give me the link to the next post with the same format as the current post. I've been looking and struggling to find one.

I expected to find an option similar to the in_same_cat option from the next/prev_post_link function.

Anyone know of one I don't or have other options on how to achieve this? Thanks.

  • What does "with the same format" mean? You just want results in the same category/taxonomy/something? – s_ha_dum Nov 14 '13 at 14:43
  • There is an "in_same_cat" argument for next_post_link: codex.wordpress.org/Function_Reference/next_post_link I am more confused now. – s_ha_dum Nov 14 '13 at 14:45
  • 1
    Posts can have both a category and a format (video, image, status etc) I thought there would be a way to navigate between them in the same way that you can with category. – mattl Nov 14 '13 at 18:26
  • Ok. Got it. You are talking about post formats. This could be tricky. – s_ha_dum Nov 14 '13 at 21:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.