• Using the Menu panel, how can I create a ‘Blog’ menuitem which shows ALL categories of posts for the site, including future categories which have yet to be created. Is this possible to do without php? IOW, is there a plugin which can be used. If not, then can someone tell me the PHP to use for adding this feature to a menu?

    For Instance, say I have a top menu:

    Home | About | Gallery | Blog

    where Home, About and Gallery are all pages. I can easily build this menu. I can also build the Blog menu by selecting ‘Uncategorized’ from the Categories field. Too bad there’s not an “ALL Categories” in the Categories field.

    Thanks for any help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Use custom menu features. i hope that it will help you.

    Thread Starter chippwalters

    (@chippwalters)

    I’m not sure I understand. How can custom features help? Can you be a bit more specific?

    ADMIN->APPEARANCE->MENU and Create the menu.

    Thread Starter chippwalters

    (@chippwalters)

    I am using Custom Menus. The question is how do I have a single menu item which shows all the blog posts?

    Create a page “Blog” with blank content. Now go to Settings->Readings section

    Front page displays : A Static Page
    1. Front Page “Home”
    2. Posts Page “Blog”

    Best of luck.

    Try the categories widget under Appearance -> Widgets

    Chip,

    Not sure if you are still looking for a solution – but in case anyone else is…

    I spent half an hour looking for an easier way, but couldn’t find one. So in the end I found the easiest way is;

    • Create a custom template that lists posts (I called it ‘List Posts’)
    • create a page using that template
    • add that page to your menu

    As an added bonus this method allows you to put a heading and some text above the list of posts (in case you want to preface them with a general statement).

    To help out here is the code for the template I made;

    <?php
    /*
    Template Name: Post List
    */
    ?>
    
    <?php get_header(); ?>
    	<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    <div id="content">
    <h1><?php the_title();?></h1>
    <?php the_content();?>
    <?php endwhile; ?>
    <div id="post_list">
        <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts(''); ?>
    	<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
        <div class="post_repeater">
    	<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
    	<p><?php the_excerpt(); ?></p>
        <p><a href="<?php the_permalink(); ?>">> read more</a></p>
        </div>
    	<?php endwhile; else: endif; ?>
    </div><!-- end post_list div -->
    <div class="navigation"><p><?php posts_nav_link(); ?></p></div>
    
    <div style="clear:both;"></div>
    </div><!-- end content div -->
    
    <?php get_sidebar(); ?>
    <div style="clear:both;"></div>
    <?php get_footer(); ?>

    Hope that helps you or someone else.

    Cheers,

    Adam.

    Thread Starter chippwalters

    (@chippwalters)

    Wprock had just what I needed. Thanks, too, for the template code.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to make a Blog menu which shows ALL Categories?’ is closed to new replies.