Title: Positioning previous/next_comments_link
Last modified: August 20, 2016

---

# Positioning previous/next_comments_link

 *  Resolved [aneemal](https://wordpress.org/support/users/aneemal/)
 * (@aneemal)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/positioning-previousnext_comments_link/)
 * 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)

 *  [Andrei Olsen](https://wordpress.org/support/users/nebulus/)
 * (@nebulus)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/positioning-previousnext_comments_link/#post-2326539)
 * 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](https://wordpress.org/support/users/aneemal/)
 * (@aneemal)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/positioning-previousnext_comments_link/#post-2326606)
 * **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.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [positioning](https://wordpress.org/support/topic-tag/positioning/)

 * 2 replies
 * 2 participants
 * Last reply from: [aneemal](https://wordpress.org/support/users/aneemal/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/positioning-previousnext_comments_link/#post-2326606)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
