I have a site built on wordpress with four pages. Each page represents a category, how can I display all posts/pages that fall under that category to display under the main page automatically? What code do I need to place in the body of the page to get it to happen?
Why do you want to use pages for categories? WordPress automatically does what you want when you add categories and sort your posts accordingly. Unless I have misunderstood.
I think he means he has each page as a category but is going to have subpages under each page. You should be able to get it to work using wp_list_pages. more info: http://codex.wordpress.org/Template_Tags/wp_list_pages You can easily make it do something like Page 1 -page 1a -page 1b -page 1c Page 2 -page 2a -page 2b etc. Just use subpage under each page. cheers
bro, can you help me about this. This is the picture: i want, when i click the number (1), it will connect to (2). Can anyone help me?
You have to edit the code in your theme template files. they are in /wp-content/themes/<your theme name here>/ if you want the menu to appear on every page, you are probably wanting to edit the sidebar.php (assuming your theme features a sidebar). cheers