Blog Tile Layout Read More Link

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jennphp
    New Member
    • Oct 2014
    • 1

    Blog Tile Layout Read More Link

    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!




    Code:
    echo "\t\t<a href='".get_permalink($post->ID)."' class='suf-mag-excerpt-full-story'> printf( '<img src="/images/full-post.png">');</a>";
  • Exequiel
    Contributor
    • Jul 2012
    • 288

    #2
    you dont need to put printf, remove printf, you used echo already and echo means print,

    Comment

    • Exequiel
      Contributor
      • Jul 2012
      • 288

      #3
      Code:
      echo "<a href='".get_permalink($post->ID)."' class='suf-mag-excerpt-full-story'><img src='/images/full-post.png'/></a>";

      Comment

      Working...