I need to add links in wordpress on single post page for post before and for post after the current post from that category. I guess i need to create some loop and include category there, but i don*t know how to make it post only 1 link for the next post because the next postid doesn*t have to be from the same category, and on the other side i need only 1 link for next post not all posts from that category.
next post: <?php next_post_link('%link', 'Next post in category', TRUE); ?> PHP: previous post: <?php previous_post_link('%link', 'Previous post in category', TRUE); ?> PHP: further reference: http://codex.wordpress.org/Template_Tags/next_post_link http://codex.wordpress.org/Template_Tags/previous_post_link