• Resolved aneemal

    (@aneemal)


    I’m having a really frustrating problem whereby I cannot control the position of the previous_comments_link and next_comments_link.

    I’ve tried everything, from divs to tables, wrapping them in <p> and <span> tags but nothing seems to make any difference? They just sit side-by-side outside the flow of all the elements i try.

    For example:

    print '<table border="1"><tr><td>
    		 '.previous_comments_link('&laquo;').'
    		 </td><td>'.$cpage.'/'.$ctotal.'</td><td>
    		 '.next_comments_link('&raquo;').'
    	</td></tr></table>';

    I would have thought that this would force everything onto a straight line, but in face the previous and next_comments_link appear outside the table altogether!
    This is the result:

    <a href="linknotnecessary" >&laquo;</a><a href="linknotnecessary" >&raquo;</a><table border="1"><tr><td>
    
    		 </td><td>3/4</td><td>
    
    	     </td></tr></table>

    Anyone know why this is happening????
    Thanks for any input/suggestions

Viewing 2 replies - 1 through 2 (of 2 total)
  • Use get_previous_comments_link, get_next_comments_link instead.

    previous_comments_link and next_comments_link functions do not return values. So, functions executed, values echoed and then your string is put together and printed.

    Thread Starter aneemal

    (@aneemal)

    Thank you so much Andrei! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Positioning previous/next_comments_link’ is closed to new replies.