Template tags inside html tags?
-
Hi
This is a bit of simple question, i have been building my own theme from scratch and so far it’s been straight forward.
I am stuck on one thing.
On my homepage i am displaying the latest 3 posts in a feature box that i have styled with css. When rendered the posts should sit in it’s own box that is positioned horizontally across the bottom.
Now i want to style these boxes and all is good except I keep getting “> at the end of my posts. How can I fix it?
Here is the code:
<div class="featureBox-wrapper-<?php query_posts('showposts=3'); if(have_posts()) : while(have_posts()) : the_post(); ?>"></div> <div class="feature-wrapper"><h1><?php the_title(); ?></h1> <div class="featureBox"><?php the_excerpt(); ?><a href="<?php the_permalink(); ?>" title="Read the rest of <?php the_title(); ?>" class="more-link">Read the rest of this entry </a> </div><!--/entry--> <?php endwhile; endif; ?></div>Also i want to learn how to use html tags with wordpress template tags..does that make sense? Is there a useful resource I can read? Is this done using “echo”?
Many Thanks 🙂
The topic ‘Template tags inside html tags?’ is closed to new replies.