• Just a quick question,

    I have this piece of code for my pagination links

    <div class="left">
    	<?php next_posts_link('<img src="images/placeholder.png" />'); ?>
    </div>

    but now i want to use always the same image for the first item, and second and so on.

    This is what i tried:

    <a href="<?php the_permalink()('<img src="images/placeholder.png" />'); ?>"</a>

    But for some reason it doesn’t work.
    Hope someone can help me out.

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is bad HTML syntax:

    <a href="<?php the_permalink()('<img src="images/placeholder.png" />'); ?>"</a>

    Do you mean this, instead?

    <a href="<?php the_permalink(); ?>"><img src="images/placeholder.png" /></a>

    Thread Starter digitalmovement

    (@digitalmovement)

    Im not that good a scripting, but learning a lot.

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Image permalink’ is closed to new replies.