Añadir «Anterior» y «Siguiente» en artículos:
Añadir en la parte baja del archivo single.php
<div><?php previous_post_link(‘ %link’,’«’,’1′) ?></div>
<div><?php next_post_link(‘%link ‘,’»’,’1′) ?></div>
En este caso sólo añadimos las dos «flechitas», importante tener los artúculos/post bien ordenados (Ordenar artículos en Portfolio de WordPress)
Más información sobre funcion:
http://codex.wordpress.org/Function_Reference/previous_post_link
http://codex.wordpress.org/Function_Reference/next_post_link


Últimos comentarios