Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get_adjacent_post wordpress

$prev_post = get_adjacent_post();
if( $prev_post )
	echo '<a href="'. get_permalink($prev_post->ID) .'">'. $prev_post->post_title .'</a>';
Source by wp-kama.com #
 
PREVIOUS NEXT
Tagged: #wordpress
ADD COMMENT
Topic
Name
9+9 =