Solved

Wordpress Post URL path

Posted on 2015-02-20
4
223 Views
Last Modified: 2015-02-23
I want to control my wordpress post url path.

I would like it to be as below...

http://www.mydomaincom/about-us/latest-news/article-slug

Under settings > reading I have set my post page to "Latest News"

and my  "Latest News" is a child of the "About Us" page.

My permalinks is set to: /%category%/%postname%/

Why is the article url showing as

http://www.mydomaincom/latest-news/article-slug

and not

http://www.mydomaincom/about-us/latest-news/article-slug

i.e. It's missing "about-us/" in the url path?
0
Comment
Question by:petewinter
  • 2
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
Lucas Bishop earned 500 total points
ID: 40621539
On the post, what category are you assigning to the post? Parent Category and Child Category? Make sure to only assign the  child category to the post.
0
 

Author Comment

by:petewinter
ID: 40625272
Thanks for the reply. Oh I see. I just need to create a parent category with the slug "about-us". It works however I already have a page with the slug "about-us". The page seems to overwrite the archive page. Is this what happens?
0
 
LVL 16

Assisted Solution

by:Lucas Bishop
Lucas Bishop earned 500 total points
ID: 40626150
You're seeing a conflict between using the same name for both a category and page. I'm fairly certain a category & page cannot share a slug, unless you employ a hack of some sort.

You may want to slightly change the naming convention of either the page or category to be "about" or "aboutus" instead of "about us".
0
 

Author Closing Comment

by:petewinter
ID: 40626199
Thanks for your help
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question