Forum Replies Created

Viewing 1 replies (of 1 total)
  • Evidently the post_category value has been deprecated due to the new wp_post2cat table. However, next_post() still uses this value for the $in_same_cat variable, which, of course, results in every post appearing to be in the same category (cat=0). Does anyone have new code for next_post() that actually works (in regards to $in_same_category)? As best as I can figure, one would have to select post_id from wp_posts, compare it with category_id in wp_post2cat and (if post_id > current_post_id), return the link. Which could possibly be as ugly as it sounds. I hope there is a better way.

Viewing 1 replies (of 1 total)