I'm looking for a way to show the next_post_link() that has a custom field key/value pair in Wordpress. What I'd like to do is exclude posts that don't have a custom field "link/true".
Maybe next_post_link() isn't the thing I want in this case, but it's worked for me up until now.
The links are at the bottom of the post. The posts in that category are in the left sidebar. The whited out posts don't have the custom field key/value pair. I'd like to skip them in the navigation at the bottom of the page.
I'm looking for a way to show the next_post_link() that has a custom field key/value pair in Wordpress. What I'd like to do is exclude posts that don't have a custom field "link/true".
Maybe next_post_link() isn't the thing I want in this case, but it's worked for me up until now.
Any thoughts?
-J
The links are at the bottom of the post. The posts in that category are in the left sidebar. The whited out posts don't have the custom field key/value pair. I'd like to skip them in the navigation at the bottom of the page.
Someone pointed me to http://codex.wordpress.org/Function_Reference/get_posts, but I can't quite get it tweaked to the point I like.
Thanks!
-J