Title: posts_nav_link using images
Last modified: August 19, 2016

---

# posts_nav_link using images

 *  [crazyfish](https://wordpress.org/support/users/crazyfish/)
 * (@crazyfish)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/posts_nav_link-using-images/)
 * I’m trying to use images for the next page and prev page links but I’m not very
   good with PHP so I think I am messing something up. If I put the relative path
   to the template the images work but if I try to call the images based on the 
   template folder it fails. I’m trying to get the below code to work:
 * `<?php posts_nav_link(' ','<img src="<?php bloginfo('template_directory'); ?>/
   images/left.png" />','<img src="<?php bloginfo('template_directory'); ?>/images/
   right.png" />'); ?>`

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [crazyfish](https://wordpress.org/support/users/crazyfish/)
 * (@crazyfish)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/posts_nav_link-using-images/#post-888481)
 * No one has tried this before??
 *  Thread Starter [crazyfish](https://wordpress.org/support/users/crazyfish/)
 * (@crazyfish)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/posts_nav_link-using-images/#post-888562)
 * I’m hoping to find an answer to this.
 *  [fas.khan](https://wordpress.org/support/users/faskhan/)
 * (@faskhan)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/posts_nav_link-using-images/#post-888705)
 * I know I am late. I was searching for it. When I found this thread, I knew that
   I have to do something like above.
 * So here is how I did it.
 *     ```
       $prevlink= '<img src='.get_bloginfo('template_url').'/images/menus/right.gif border=0 />';
       						$nextlink= '<img src='.get_bloginfo('template_url').'/images/menus/down.gif border=0 />';
       						posts_nav_link(' ',$prevlink,$nextlink);
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘posts_nav_link using images’ is closed to new replies.

## Tags

 * [images](https://wordpress.org/support/topic-tag/images/)
 * [page nav](https://wordpress.org/support/topic-tag/page-nav/)
 * [posts nav link](https://wordpress.org/support/topic-tag/posts-nav-link/)
 * [posts_nav_link](https://wordpress.org/support/topic-tag/posts_nav_link/)

 * 3 replies
 * 2 participants
 * Last reply from: [fas.khan](https://wordpress.org/support/users/faskhan/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/posts_nav_link-using-images/#post-888705)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
