bgbs Posted June 2, 2011 Share Posted June 2, 2011 How do I correctly display image? <div class="nav-right"><?php next_posts_link('<img src="images/more-but.png" />') ?></div> I must be writing it incorrectly. Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/238262-help-with-php-syntax/ Share on other sites More sharing options...
Pikachu2000 Posted June 2, 2011 Share Posted June 2, 2011 What is this code from? Quote Link to comment https://forums.phpfreaks.com/topic/238262-help-with-php-syntax/#findComment-1224416 Share on other sites More sharing options...
cyberRobot Posted June 3, 2011 Share Posted June 3, 2011 Is this for a WordPress website? If so, it looks like you can use the posts_nav_link() function to replace the next/previous post links with images. For more information, visit the Codex: http://codex.wordpress.org/Function_Reference/posts_nav_link Quote Link to comment https://forums.phpfreaks.com/topic/238262-help-with-php-syntax/#findComment-1224603 Share on other sites More sharing options...
AndyB Posted June 6, 2011 Share Posted June 6, 2011 How do I correctly display image? <div class="nav-right"><?php next_posts_link('img src="images/more-but.png" />') ?></div> <?php echo '<img src="images/more-but.png"/>'?> Quote Link to comment https://forums.phpfreaks.com/topic/238262-help-with-php-syntax/#findComment-1226177 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.