Forums

[resolved] Plugin to display blog posts on a WP Page? (3 posts)

  1. mjspade
    Member
    Posted 3 years ago #

    Hello,

    I have started using word press pages to build a website for the first time, and in the past I have used Joomla, but when I saw what you can do with word press I find it more desireable. I want to have a page where I show the stories with a picture and small summary of the story on the page. Something very similar to this:

    http://www.3godkings.com/content/view/148/192/

    or even something like this under the more Featured Posts section

    http://www.spicymoviedogs.com/

    I was hoping to have this dynamically do it when I write a story for a specific category, is there a plugin that will do this, or a way to automate things or am I stuck coding it manual. Thanks for the help.

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    A Featured Post section based on 'category' is straight forward:

    <?php
    $posts=get_posts('cat=3&amp;numberposts=5');
    if ($posts) {
    foreach($posts as $post) {
    setup_postdata($post);
    ?>
    <?php the_time('m.d.y') ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
    
    <?php }
    }
    ?>

    Might also look at some themes that have 'featured posts' sections--one example: http://themehybrid.com/archives/2009/02/hybrid-news-wordpress-theme

    Forum in mangling the & in the code above so where the &amp is, replace with &

  3. mjspade
    Member
    Posted 3 years ago #

    Thanks that answered my questions.

Topic Closed

This topic has been closed to new replies.

About this Topic