using text/html adding in code to display categroy posts
-
I have the TwentyEleven template. I have the footer area one – I want to have a specific categeory queried to display headlines/abstracts in a
- format.
This is what I have:
here:
https://news.vivaxmedical.com/<div id=”homeBox1″ class=”bglavender”>
<h3>Clinical</h3>
<h2>Research</h2>
<div class=”air”></div>- <span class=”hl”>Here is a sample.</span>
<span class=”abstract”> Pellentesque pulvinar ligula sed quam mollis eget pretium odio sagit</span>
/*here starts my attempt at displaying the ul list of posts for one category. I only have three posts. – this comment is not in the code */
-
<?php
- “><span class=”hl”><?php the_title(); ?></span>
<span class=”abstract”> <?php the_excerpt(); ?></span>
query_posts(‘showposts=3&cat=4’);
while(have_posts()) : the_post();
?><?php endwhile; ?>
<div class=”air”></div>
<span class=”btn”>read more</span>
</div>Assistance is appreciated. Need to use this code for a couple of areas.
Thank you all!
Susan - <span class=”hl”>Here is a sample.</span>
- The topic ‘using text/html adding in code to display categroy posts’ is closed to new replies.