Parse error using previous_posts_link()
-
Hi,
this code works:
<?php next_posts_link('<img src="https://www.joelcormack.com/mxmg.com/wordpress/wp-content/themes/marinelogix-light-and-dark/images/next.png" />'); ?>
this code doesn’t:
<?php previous_posts_link('<img src="<?php bloginfo('template_directory'); ?>/images/previous.png" />'); ?>
I’ve searched these forums but can’t seem to find a way of properly pulling images from within the next and previous posts links. Is there a way it can be done, without hard coding?
My text editor doesn’t like like the latter code either and says its a parse error.
any help would be most appreciated.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Parse error using previous_posts_link()’ is closed to new replies.