• 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

    (@crazyfish)

    No one has tried this before??

    Thread Starter crazyfish

    (@crazyfish)

    I’m hoping to find an answer to this.

    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.