Please give me a hand here.. I’ve struggled with this in the last hours and i couldn’t find anything good on Google either. I have to make one of two things .. i don’t need both, i just need to one, but none seem to be working.
Case A: I need to get the next_post_link and exclude a category type
I’m working with custom posts, and no matter what i try, if i put a taxonomy id inside that field, it excludes all of my posts. I get nothing.. I’ve also tried with get_adjacent_post but it didn’t work. Can i even filter the next custom post by a category id?
Case B: I need to get the meta info of the next post Again, i’ve tried to get_post_meta by giving the next post’s id, and it doesn’t work. Can i even get it? Or should i figure out a Case C?
Please read the entire post. I’ve already used it and it doesn’t work.
get_adjacent_post(false, ’’, false) – returns the next post;
get_adjacent_post(false, ‘23’, false) – returns nothing.
Oops sorry, I missed that part.
Always dig into the core files if something doesn’t work. I’ve had a similar problem in the past and found a solution: http://themeforest.net/forums/thread/next_post_link-with-custom-post-types/65676
Hope that helps
Thanks for link.. However, i’ve followed a route C, which didn’t involve the next post..