Firstly — thank you for the plugin. It’s absolutely great!
I have one question about using PHP in my array for the image link. I think I have to use get_bloginfo() to get the correct directly since…
<img src="images/right-arrow.png" />
… doesn’t show the image. But I can’t use php inside the text if I start ‘img src=…
Currently my array is as per below, but for the ‘link’ it is just outputting [site name]/images/right-arrow.png as text… What should I do? Thanks in advance!!
<?php next_post_link_plus( array( 'order_by' => 'post_date', 'loop' => true, 'format' => '%link', 'link' => get_bloginfo('template directory').'/images/right-arrow.png', 'in_same_cat' => true, 'in_same_tax' => true ) ); ?>
- The topic ‘Using PHP in array for image link’ is closed to new replies.