English 中文(简体)
Hierarchical Wordpress page nav with all permalinks in the root
原标题:

Is there a way to have a hierarchical nav for Wordpress static pages without having the permalinks appear like they re in folders? I.e., I want nav structured like this:

+ Home
+ About
|- Me
|- My Dog

...with permalinks like these: /home, /about, /me, /my-dog. The only way I can find to set up navigation like this through Wordpress is to make the secondary pages children of the page above them, but this makes the permalinks look like this: /about/me, /about/my-dog

Is there any way (with a plugin or otherwise) to get all of the page permalinks linked from the root?

最佳回答

Wordpress 3.0 has a built-in menu creator. you can customize the layout of your navigation regardless of how the pages are structured in the "Pages" section.

To solve your issue, have all pages be root pages and then rearrange them using the menu creator.

问题回答

暂无回答




相关问题
Converting GET method url s to logical permanent links

I have a J2EE application with a web service which goes like http://servername/service?task=getFile&id=25 How can I convert these type of urls to http://servername/service/getFile/25 http://...

wordpress permalink post_type

i am looking for a way to get the post_type into a wordpress permalink structure - especially considering custom post_type s defined by my own plugin. is there an easy way to do that, or do you know ...

.htaccess gone for deleted, permalink database entries

I have event entries in a php application with a permalink structure for the events. I m creating a dynamic xml sitemap for google et al. which creates new url nodes as events are added, and when an ...

Wordpress stop post redirects

I m having a Wordpress problem regarding permalinks. When I have a post whose permalink is say, /2009/10/podcasts, trying to access /podcasts redirects to /2009/10/podcasts. Is there any way to stop ...

Recommended url structure for parent child list in mvc

If I am listing child items of a parent in an asp.net mvc app, is there a best practice to how the url structure should be formed? Example: 1. http://app/parent/<parentID>/children 2. http://...

Rails Friendly URLs

I have a model called Project and I ve defined the "to_param" method as this: def to_param permalink end I am using this permalink plugin github.com/febuiles/make_permalink so when I call p....

Permalink/slug best practices

I m about to setup permalinks on a website and I m wondering what sort of conventions I should follow in regards to generating them from the existing table of news articles. So far here are the rules/...

热门标签