-3
votes
0answers
25 views

Related Posts without plugin

I need to my folder single.php insert code related post I tried but problem that does not appear div where the path for the images. Or the exact steps? Thank you
0
votes
2answers
160 views

How to add a class and title attribute to the link generated by next/previous post

The following code <?php previous_post('%', '&#60;', 'no'); ?> <?php next_post('%', '&#62; ', 'no'); ?> returns these links, as it should <a ...
-1
votes
1answer
310 views

Retrieving next_post_link() and previous_post_link() in functions.php

I'm trying to create a function in functions.php that includes the next_post_link() and previous_post_link() without success. It returns empty. My guess is that these don't use the post ID... So what ...