WordPress.org

Ready to get started?Download WordPress

Forums

Post specific categories to specific pages. (6 posts)

  1. sarah.osborne
    Member
    Posted 2 years 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.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

  3. sarah.osborne
    Member
    Posted 2 years 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?

  4. sarah.osborne
    Member
    Posted 2 years ago #

    <div class="entry-meta"> <?php the_date(); ?> </div>
    this adds the date to the first post, but not all three?

  5. sarah.osborne
    Member
    Posted 2 years 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.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic