Archive for ‘Programming’ posts


Aug 30 2010

WordPress – Post on more than one Pages

Game / Programmieren / Programming / Spiel - 1 year ago - cheesy

Today I lost some precious hours of my life to do a simple but unfortunately unsupported thing with wordpress. For a blog-page I desperately needed the feature to post to more than one page! In my case the main menu should have looked like this: News – FAQ – About – nothing more. Under News I needed to post some in-character news regarding a rpg I’m in, under FAQ I needed to post the out-of-character news and help for my fellow players. After several unsuccessful depressing tries I found a workaround over Categories and I had to add one more page where I could dump all the posts. Finally my menu looks like this: News – FAQ – About – All Posts. Here’s the step-by-step:

  1. Intall and activate the plugin “Page Links To”.
  2. Create Categories with the names of the pages you want to have blogposts in.
  3. Create Pages with the preferred names for your multiple blogs and link it to the desired categories using the “Page Links To” plugin. (http://<your wordpress page>/?cat=<categorie number>)
  4. Make one additional page with a creative name like “All Posts” or whatever you want and sort it to the very back of your pages list.
  5. Go to the header template(header.php) of your theme and delete the second line of the following code in this file to get rid of your homepage:
    <ul id="mainnav">
    <li><a href="<?php bloginfo('url'); ?>" title="Home">Home</a></li>
    <?php wp_list_pages('title_li=&depth=1&sort_column=menu_order'); ?>
    </ul>
  6. Set Settings – Reading Front page displays to “A static page” and select your preferred page as Front page (in my case News) and select your dump as Posts page.
  7. Now you only have to add the correct categories to your posts and they will appear under the correct pages.