• Hello !

    I’m trying to figure out how to place my next post / previous post links around the actual post content, vertically centred.

    Here is an illustration of what I want.

    (The links are the << and >>.)

    And here is my current code structure :

    echo '<div class="next">'.get_previous_posts_link('>>').'</div>';
    echo '<div class="previous">'.get_next_posts_link('<<').'</div>';	
    
    		while (have_posts()) : the_post();
    			echo '<div id="news">';
    			the_title('<div class="title">', '</div>');
    			the_date('F j, Y', '<div class="date">', '</div>');
    			echo '<div class="text">'.get_the_content().'</div>';
    			echo '</div>';
    		endwhile;

    Thank you !

  • The topic ‘How to get next/previous links in the middle ?’ is closed to new replies.