473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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!




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
2 1300
Exequiel
288 256MB
you dont need to put printf, remove printf, you used echo already and echo means print,
Nov 2 '14 #2
Exequiel
288 256MB
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>";
  2.  
Nov 2 '14 #3

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

Similar topics

7
by: Harlin Seritt | last post by:
I was looking at the Tcl/Tk sourceforge page and found that there were a couple of new widgets being produced for Tcl 8.5. Does anyone know if there are any Tkinter wrappers somewhere? thanks, ...
7
by: Drew Martin | last post by:
The page at the below URL renders perfectly in IE6, but is failing horribly in Firefox (0.7, 0.8). I can't figure out why and was hoping someone could take a quick look at it. Most of the layout...
3
by: David Smith | last post by:
Is there an easy way to tile and cascade MDI child windows? Thanks in advance
0
by: Rachel | last post by:
I have created an MDI app with the options Cascase, Tile Horizontally, and Tile Vertically. When I have 3 or fewer mdi child windows this works perfect. However, when i have 4 or more windows...
1
by: rodny.romero | last post by:
Somebody can help me with an example of like Reading post office with VB.Net using protocol POP3, I have obtained the commandos or instructions that protocol POP3 supports, but I have not been able...
1
by: nicky77 | last post by:
hi there, i'm pretty inexperienced with CSS, so apologies for the shoddy coding. i'm trying to set a 3 column layout using different background images for each column. however, i have whitespace at...
0
by: =?iso-8859-1?B?QW3p?= | last post by:
Hi! I am new to asp.net and mobileControls. I am reading adresses from a Database and would like to create links that would lead to another page. At this point, I am able to create the links but...
0
by: Kristal Y | last post by:
Hello, I designed my home page in css and am replacing one of the images with a swf. It's the same dimensions as the jpg, I put no borders, but it still expands the space of the swf somehow and...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.