I am working on a website for a company right now and I am running into this issue:
The original URL is similar to this: mysite.com/industrial/ where industrial has 4 subcategories which each have 2-6 pages within them. I changed the original URL to mysite.com/products/ but the subcategories and pages within are not changing to include products in their URL - they still use industrial.
For ex.: mysite.com/industrial/abc/ should be mysite.com/products/abc/ but it stays as mysite.com/industrial/abc/ after I made my change.
I assume that the subcategories are in a folder called industrial (I did not create this website so I do not know), however I can't find that folder anywhere and I'm not sure where to look. I have tried to go in to each of the subcategories and change their URLs, but I can only edit the abc part of the URL and I can't touch the rest.
** This was all done on Wordpress with a custom theme created by another company. Thank you in advance for any help you can offer!
EDIT: For anyone who is also struggling this problem this is how I solved it:
Go to Plugins -> Plugin Editor
At the top there was an option called "Select plugin to edit" -> chose the one that is custom to your website
I found the information that was suggested by Phil in the comment section on this website
I updated the names of my fields in the rewrite permastruct section for register_post_type as well as register_taxonomy
Update the page and flush your permalinks and you should be good to go!
Check what is the defined slug when registering the custom post type.
Whenever a new Custom Post is added through a plugin or them, then the permalinks needs to be flushed.
In the WordPress admin area, go to “Settings > Permalinks”. Click “Save Changes”. The permalinks and rewrite rules are now flushed.
Related
I am using WooCommerce and my shoppage is called webshop.
If I go to this pages the URL is https://www.example.com/webshop
This page contains the categories and If I click on a categorie the URL is a little bit strange https://www.example.com/product-categorie/thecategory/
Is this normal? In my opinion it should be https://www.example.com/webshop/thecategory/
Yes this is because of the WordPress URL structure. It is totally fine. But you can also change them by changing the permalink structure.
for changing the permalink:
Goto Settings
Choose Permalink.
Choose what you want (Post Name is good to go).
Ok, here is the thing I have already added the categories to the pages (with the help of a plug-in, it's called Add category to pages) and so now I want to change the URL to display the categories (that is to say I want my pages to have this estructure: mysite.com/%categories%/%page_name% right now it has his structure: mysite.com/%page_name%), I have tried to google it but I can't find a straight answer. So if anyone has some resources (tutorials, articles) or some idea (if it's not to much to ask with code examples) on how to achieve this it would be fantastic. (And believe me, I'm asking as my last resource)
you can do it easily with "Page Parent" option available in WordPress.
Steps To create a subpage
Go to Administration > Pages > Add New screen.
In the right menu, click the “Page Parent/No Parent” drop-down/page attribute widget. The drop-down menu contains a list of all the Pages already created for your website.
Select the appropriate parent page from the drop-down menu to make the current Page a child Page.
Add content to the subpage.
Click Publish when ready.
Output - https://example.com/asia/india/
More Info. - Wordpress Subpage Permalink
well you can do this for categories and products from permalink setting, but if you want to manipulate the page url according to yourself then you need to create an blank page with the prescribed name whichever you want to insert, i.e, if you want to insert amazon within the url then create an url with name of amazon, and put the other url's under this parent page.
This way your url will look like
http://example.com/amazon/page_name
Unable to post as comment so directly posting it in an answer, in WordPress you can have custom URL. After you logged I'm as admin under dashboard you have general settings where you can put custom URL's like http://example.com/%caregory%/page_name
For more reference also checkhttp://codex.wordpress.org/Changing_The_Site_URL
I don't know if you tried this but after you login as admin, under Dashboard>>Settings>>Permalinks>>Custom Structure.
Let me know if you have already tried that.
Please forgive me if this problem has been solved, but I searched and none of the solutions presented here seemed to match my situation.
I had a plugin programmed to create a custom post type called "Exercises". When I first create the post, the plugin assigns the title to the post URL. For example:
mysite dot com/?exercise=pushups
The permalink setting are the default mysite dot com/?p=123, but the plugin somehow assigns the custom post title to the URL so it appears as shown above.
With a regular post, I'm able to change the post title and the permalink is changed. However, the problem I'm having is I'm unable to edit the URL title with the custom post after initial creation. For example, I was hoping for this:
mysite dot com/?exercise/%postname%/
Where I can edit postname directly from the post admin page.
Does anyone know what could be causing this and where I could make the changes? The programmers suggested that it would require nginx rewrite configuration (which they are not familiar with. Is there any way to change this so I can edit title after I've created the exercise? I tried changing the permalink settings but that made the custom plugin not functional.
Thanks in advance!
I am using wordpress - and there is a way to publish pages and posts.
I am creating Posts and for that you can add tags (which just give you more keywords to rank for it shows up at the bottom of the posts - wordpress creates pages with these tags and it ranks for the tags in the search engines)
I created all these links inside the posts - and now after checking the
links they are fine on the main post page but for all the tags which come with that posts - the actual links get screwed up by wordpress bc they add a /tag/ before
the link.
This is the URL which gets created thats comes with the posts.
Example :-http://www.sitename.com/tag/tagname/
Please help
Verify if you have in the used theme the tag.php file, if not, then use one, for reference check the one from "Twentyeleven" WordPress template. (http://codex.wordpress.org/Tag_Templates)
In your dashboard, Settings > Permalinks, set to "Default", then save, then check "Post name" and save it again.
Good luck! :)
I have a wordpress multi-site:
site1.local.loc [with subdomains on my local] and I would like to have three pages on this.
site1.local.loc/works - (posts page, but I want 'Works' as my title)
site1.local.loc/about - (static page)
site1.local.loc/contact - (static page)
Since 'Works' is my posts page where I keep putting in content, I changed my permalinks for this site to:
/works/%postname%/
However, when clicking on 'view post' at the end of posting anything, it leads me to a '404' page which means there is a disconnect. This is also the case for viewing any page. Is my .htaccess file faulty?
How do I solve this? Also how do I make all my posts appear in my 'Works' page (as in, how to make that page the posts page?)
Thanks!
Updated: I've found out that I get a 404 for any page that I create for a site in a wordpress network.
You do not have to touch .htaccess file.
Make a custom post type that is called works. All those posts made in that custom post type will have that url that you desire. There is no other way to do it. (even if there is, it must be dirty) That is celanest way, and since wp does it by itself you can expect that nothing will go wrong wnen you update, install plugins, etc.
Create a category called "Works" that would then show all posts added to that category by simply going to /works/ all posts would then be shown as /works/post-name/.
You will need to change the permalink structure to /%category%/%postname%/
Check this in administration
Settings > Permalinks > Post name