WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Posts from one category shown on Page (5 posts)

  1. Claygirl
    Member
    Posted 7 years ago #

    I want to show posts from one category on a Page. So I made a template looking like:
    <?php
    /*
    Template Name: Blog
    */
    ?>
    <?php get_header(); ?>
    <div id="content" class="narrowcolumn">
    <?php query_posts("cat=12"); ?>
    + the rest of the archive.php file pasted

    The problem is the_content() shows whole posts and I want only excerpts (like on a normal blog page).
    Could anybody help me with telling WP it should show exceprts of posts with links "read more", not whole posts?

  2. moshu
    Member
    Posted 7 years ago #

    Wouldn't a category template do it without any complication?

  3. Claygirl
    Member
    Posted 7 years ago #

    It probably would, but I'm the dumb one, who already done everything else in Pages and want to have there blog entries also. You know, just to have a nice site menu, generated by listing Pages.
    So, I think either making excerpts with links manually, or including category template in Page (but I believe it many cause the same problem as shown above) will do. And there's another idea that have come to my mind: make listing Pages function include that one category in list.
    Though, I have no idea how to make any of those.

  4. Claygirl
    Member
    Posted 7 years ago #

    To make it clear:
    The site is http://rafalkosik.com/ (in Polish). Blog entries are temporarily shown on main page. They should be shown on Blog page. Unfortunately I can't figure out how to show posts from one category on a Page.

  5. Claygirl
    Member
    Posted 7 years ago #

    OK. I've found solution by myself: http://wiki.wordpress.org/the_excerptReloaded

Topic Closed

This topic has been closed to new replies.

About this Topic