have all posts under a page (structure wise) ?
-
Hey,
I have this problem which I just can’t find a solution to, and I’ve searched and tried for some time now.
I want my site, which is completely based on wordpress, to have a structure similar to this:
About
….Who are we?
….Blog
….Links
….Contact
Seminars
….Schedule
….Teachers
….Articles
Page 3
….Page 3.1
….Page 3.2
…All of the items in the list are pages, except for the blog which is supposed to be the regular default index file in wordpress which displays the last posts.
Also, I would like the permalinks to have the same structure:
/about
/about/who
/about/blog
/about/links
…And the posts (in single) will have the following format:
/about/blog/%year%/%monthnum%/%day%/%postname%/I already created a thread in How-To and Troubleshooting forum but it got no attention at all, and I thought that putting it here and maybe explaining exactly what I’m after will help.
My current status is this:
I managed to have all the pages in the wanted hierarchy and they have the wanted permalinks.
The posts also have the wanted permalinks by putting the above format in the Custom Structure (Settings > Permalink Settings).What’s problematic:
1. I can’t seem to move or mimic the behavior of the index.php file into /about/blog/ url.
I even tried creating that directory structure under the root and placing a index file there which loads the wp-blog-header.php of the root, but the title of the page is “page no found” and even though the index.php of my template is being called, the loop does not produce any content.
2. In all the pages there’s a side menu with only the sub pages of the same parent. I’m doing that using wp_list_pages and I give it the id of the page if it’s a root page (About, Seminars, Page 3…) or the id of the ancestors if it’s a child page (I only have this 2nd level).
I want to be able to know when displaying posts (index or single) that the post is under the About page so that it can display the correct side menu.I really hope that this post makes it clear, because I’ve been searching the web for almost two weeks now (on and off) trying to come up with a way to accomplish this.
would appreciate any help, thanks.
- The topic ‘have all posts under a page (structure wise) ?’ is closed to new replies.