sarah.osborne
Member
Posted 5 months ago #
So I have this site that I am developing
http://andrewbusch.724impact.com
I'm almost done, I just need 5 specific codes, each on a different query and only showing an excerpt.
Must display title, date published, the AddThis links that are displayed, and the excerpt with "...Read More"
Main page will display latest 3 posts from all categories, blog page just the last 3 posts from the blog category, media page just the last 3 posts from the media category, speaking topics page just the last 3 posts from the speaking topics category, and news page just the last 3 posts from the news category.
does anyone have a code for me? I'm sure this has been done a million times.
sarah.osborne
Member
Posted 5 months ago #
this is what i currently have
<?php
query_posts('cat=3&posts_per_page=3');
while (have_posts()) : the_post(); ?>
<h2 class="entry-title"><?php the_title(); ?></h2>
<div class="entry-content">
<?php the_excerpt(); ?>
</div>
<?php endwhile; ?>
this is doing exactly what i need buuuuut... no entry-meta :(
anyone have a line of code i can add to get the date posted?
sarah.osborne
Member
Posted 5 months ago #
<div class="entry-meta"> <?php the_date(); ?> </div>
this adds the date to the first post, but not all three?
sarah.osborne
Member
Posted 5 months ago #
ok so i replaced the title line with
<?php thematic_postheader(); ?>
and that gave me By ADMIN | Published: DECEMBER 6, 2011 | Edit
if anyone has a way to make it so that By ADMIN isnt there it would be helpful.