424,301 Members | 1,271 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,301 IT Pros & Developers. It's quick & easy.

Blog Tile Layout Read More Link

P: 1
I am working on a blog home page with a tile layout. For the bottom of each tile, where there is typically a "Read More" link to the full article, I would like to insert a custom image that links to the full article.

I am familiar with HTML, but completely new to PHP. The page is coded in PHP. Here is the code I have so far, but it keeps giving me Syntax Errors.

Thanks so much for your help!

Expand|Select|Wrap|Line Numbers
  1. echo "\t\t<a href='".get_permalink($post->ID)."' class='suf-mag-excerpt-full-story'> printf( '<img src="/images/full-post.png">');</a>";
Oct 31 '14 #1
Share this Question
Share on Google+
2 Replies

P: 287
you dont need to put printf, remove printf, you used echo already and echo means print,
Nov 2 '14 #2

P: 287
Expand|Select|Wrap|Line Numbers
  1. echo "<a href='".get_permalink($post->ID)."' class='suf-mag-excerpt-full-story'><img src='/images/full-post.png'/></a>";
Nov 2 '14 #3

Post your reply

Sign in to post your reply or Sign up for a free account.