Support » Plugins » Categories Posts inside Pages Plugin

  • Hi everyone.

    I Looked around the forum but could not find an answer. Could anyone tell me if a WP plugin exists, that allows the posts of a certain category to appear inside a Page ..? Or If i put it in another context , can one put posts inside a page .? That is when one open the page he will see links of posts related to a specific categopry inside that page.

    Thanks for any help.

    Cheers.

    Danouma.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Don’t need a plugin. Just need a Page with a Page Template assigned, and a loop similar to this (untested) code:

    <?php $page_query = new WP_Query('post_type=post&cat=47'); ?>
    <?php while ($page_query->have_posts()) : $page_query->the_post(); ?>
    <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
    <?php the_content('Read the rest of this entry &raquo;'); ?>
    <?php endwhile; ?>

    Resources:

    Stepping Into Templates
    Template Hierarchy
    Template Tags
    query_posts()

    @ MichaelH: I also went down that path to fix this, but it is only half of the solution. When someone clicks on an individual post from your category template, they would lose their place in the site tree, thus dynamic highlighting of the menu bar would disappear for that page.

    I am trying to find a way to mod the nav menu to recognise this, but am stumped.

    terrybolas

    (@terrybolas)

    This guy did it!


    http://www.strikemma.com/category/videos/

    Why nobody is explaining this in a simple way?!!

    lightbulb

    (@lightbulb)

    Guys there is an easy solution for this, however, you can only use this plugin if you are not using pretty permalinks. Go to http://aralbalkan.com/wordpress for the plugin.

    If anyone can find a way of doing this but with pretty permalinks I would be grateful

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Categories Posts inside Pages Plugin’ is closed to new replies.