Title: d_alan_hurst's Replies | WordPress.org

---

# d_alan_hurst

  [  ](https://wordpress.org/support/users/d_alan_hurst/)

 *   [Profile](https://wordpress.org/support/users/d_alan_hurst/)
 *   [Topics Started](https://wordpress.org/support/users/d_alan_hurst/topics/)
 *   [Replies Created](https://wordpress.org/support/users/d_alan_hurst/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/d_alan_hurst/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/d_alan_hurst/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/d_alan_hurst/engagements/)
 *   [Favorites](https://wordpress.org/support/users/d_alan_hurst/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [the_category_ID shows no ID](https://wordpress.org/support/topic/the_category_id-shows-no-id/)
 *  [d_alan_hurst](https://wordpress.org/support/users/d_alan_hurst/)
 * (@d_alan_hurst)
 * [22 years ago](https://wordpress.org/support/topic/the_category_id-shows-no-id/#post-53718)
 * 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)