• I have been searching this forum for a while but I cannot give my problem a name so obviously I can’t find the answer.

    So let’s assume that I have the following pages (a website about my off-road hobby): HOME, CONTACT, TECH, TRAVEL

    Home and contact are obvious pages (or is it links or categories?) but while writing a new post how do I force it to appear in a specific category (either ‘tech’ or ‘travel’). Currently while posting tech articles or stories about places I visit, it all appears under one category.

    Probably my question is lame but I have just started my adventure with WordPress. I have been using subdreamer for years, which is a bit different.

    Many, many, many thaks for your help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Write Post admin page contains the Categories section where you can select the categories of your post.

    Try this:
    Switch to the WordPress Default 1.6 theme. Make sure you have the Tech and Travel categories created. When you write Posts, select the Category (one or more) that gets assigned to that post. Then visit your site and click on the Tech category in the sidebar. You should be taken to an archive of all the posts in the Tech category.

    Also, Contact is usually a Page and Home is usually hardcoded in a theme’s header.php to ‘redirect’ you back to your blog front page.

    Thread Starter MikePL

    (@mikepl)

    Hmmm…

    I would like to use this theme:
    https://www.metamorphozis.com/wptheem/index.php?wptheme=metamorph_highway

    There is a sidebar called categories, but how do I make the categories in the sidebar appear where the pages appear? Like a typical menu on the top of the page and not small fonts in a sidebar.

    I am planning to have a simple site and currently I am in trouble. On top I have ‘home’ and ‘about’ while my posts appear in the sidebar under ‘tech’ and ‘travel’. What should I do to transfer the tech and travel categories to the top in order to have it like home-about-contact-tech-travel.

    You know, I think this is much more simple than splitting my website pages in two places (home, about and contact on top, while tech and travel somewhere in the sidebar).

    You’ll either want to use wp_list_categories or hardcode the links (url to each category archive) into your theme’s header.php file.

    Resources:
    Stepping Into Templates
    Stepping Into Template Tags
    Template Hierarchy

    Thread Starter MikePL

    (@mikepl)

    Can you elaborate a little bit on it? Like what code goes where in order to achieve that. Hardcoding works almost fine, the exception being the fact that when I create new pages within WP all the hardcoded links within header.php are repeated. So I end up with all my pages doubled.

    I’ve tried to do a search on wp_list_categories but all the topics I’ve found are quite complex and there is no information on the basics of wp_list_categories, whatever it is…

    Thread Starter MikePL

    (@mikepl)

    I’ve read this explanation on the wp_list_categories but I am still having problems using it. I try inserting it within the code below, after the code and before it. My best result was when the categories displayed as pages but they all were not on the same height as the ‘home’ and ‘about’ pages. What is more, they duplicated themselves (home, about, tech, travel, about, tech, travel)

    <li>
    	<a <?php if($check==1)echo'id="mactive"' ?> href="<?php echo get_settings('home')."/?page_id=".($page->ID); ?>"><span class="mLink"><?php echo $page->post_title; ?></span>
    		<span class="m<?php echo $page->post_title; ?>"></span>
    	</a>
    </li>

    So where should the wp_list_categories go?

    I have a few questions.

    I am trying to post various articles to various pages I have created on the blog. It is only allowing me to post to my homepage. How do I differentiate which page the article gets posted to?

    In addition, I would like to change the template. Instead of having the title be “my blog” I want to create my own title. I also do not want the worlds “please add some widgets here”.

    Thank you

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to post into different pages.’ is closed to new replies.