Okay so the title basically explains it. Every time i add a new page to my wordpress site it just adds to the navigation bar. Im not sure if it's css or the php files thats making it do this. Hopefully in the image you can see what i mean. All i want is for certain pages to be in the sidebar and have a basic navigation bar such as home, about, contact etc. What can i do to correct this?
Not true. Open your themes index.php or single.php ... you see php code. The problem can be easily fixed. Every site has an ID. You just need to add it to the wp_list_pages exclude function. Read here -> http://codex.wordpress.org/Function_Reference/wp_list_pages#Exclude_Pages_from_List Therefore you need to edit your theme files (just search for wp_list_pages in your php files). Example: <?php wp_list_pages('exclude=17,38' ); ?> Code (markup): The sites with the ID 17 and 38 are not shown in the pages list.
Hey guys, didn't manage to change my code but did find a great plugin which enables me to hide/show posts. It's called pageMash
Oh yea sorry my pages. I also made a parent in the sidebar so they all fit in one. Hey i knew that i had to put the code in but i didn't know exactly where, i did find a code with wp_list_pages in the function.php files but it was totally irrelevant. In the end it just ended up with me messing with my code and nearly ruining the site.
I've always thought the way wordpress handles what pages appear where in navigation is really crap - it can be a real battle to get things how you want them. E107 on the other hand is a joy - everything works as you would want and can be set how you like it from the back-end without hacking the code. Having used both extensively I can tell you that e107 makes wordpress look awkward and tired in a lot of respects.
That is because you don't mess with the functions.php when you want to do this. You find the wp_list_pages in your theme files and set the paramenters in that.