Change permalink for custom post in Wordpress 3.5 - wordpress

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!

Related

How do I find the parent URL on a webpage (Wordpress)

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.

Wordpress change the permalink

So I am new to WordPress. Now I want to change the permalink settings of my post. Currently, my post URL includes dates like http://siteaddress.com/2019/11/21/topic-of-discussion/. Now I want to remove the date part.
I googled and found many references which say under your settings, there will be permalink options, but now it is not there.
Also, I read a few places where it says on your post header you can change the permalink address. But here also I am not able to remove the date.
Is there any other way I can do this.
Is your website hosted on Wordpress.com? On this website it says that it is not possible to change that.
See https://en.forums.wordpress.com/topic/permalink-settings-configuration-missing/

Wordpress url not including category on main page

I am new to wordpress so trying to figure out something which I cannot and asking you guys. Please help if you know.
I have issues with URL formation in Wordpress. I want to show articles' category name in URL, so I am using Permlinks -> custom structure which is like /%category%/%postname%.htm I then pasted code given by WP in .htaccess file. So now articles use http://mysite/category1/article1.htm URL.
But then on index.php any links inside article shows URL ashttp://mysite/article2.htm and hence 404. I am using >Article2 inside a post. If I open http://mysite/category1/article1.htm then above link will show as http://mysite/category2/article2.htm which is the correct URL.
Can someone plese help me figure out correct way? Using above configuration, it works fine for all links when open individual posts but only main index.php does not include category name. Just to note, URLs in Recent Posts also show correct URL.
If the links are hardcoded inside the article itself, there's nothing inside WordPress PHP or settings to change. You just need to edit the post content and update the HTML link URLs using the new permalink structure, within Posts and/or Pages tab.
You can also try a plugin like Redirection which will redirect old post permalinks to the new (correct) permalink format.
http://wordpress.org/plugins/redirection/

Custom Post Types and Template Hierarchy

On the following dev site, I set up a custom post type for "Articles". The post type name is "zu_articles" and the slug is "articles". Everything is working in the Dashboard and I'm able to generate a listing of articles. But when you click the article link, it goes to a 404. I have the following page created: single-zu_articles.php based on my understanding of the WP template hierarchy. I also have single-aricles.php if it is based on the slug and that doesn't work either.
http://zimmernutrition.com.s137737.gridserver.com/
There is a "Latest Article" widget under the content slider on the right to see everything.
What am I doing wrong?
Thanks
Brett
Okay, you're not going to believe this...did some more hunting on StackOverflow and found this post:
Wordpress -- permalink with custom post types
All I had to do was resave my f'n existing permalinks in the Dashboard.
Thanks for staying with me. With I understood why this had to be done and why it fixed it.

How to add custom URLs to my WordPress template files?

I'm developing a WordPress theme and I need to have a custom URL for some kind of content.
For example, I need to have a page to show some article details. Now, i've created a page template called "Article", and so i've to create a new page and give it the page template "Article"
(I get the url http://mydomain.com/article?id=123)
It works fine, but now i'm having dozens of this pages, and it's a mess to create them all on every installation of this theme, so i want to do it in my theme code.
I saw something near that on BuddyPress, where you can use /member/ and it redirects to a member page. I just wanna know how to do so.
Thanks!
If you are running wordpress 3.0 I would recommend making a custom post type for your articles. That would allow you to control the URL in the way that you want and also allow you to use more sophisticated full text urls if you wanted to.
Here are some links to some tutorials about how to make a custom post type to get you started:
http://kovshenin.com/archives/custom-post-types-in-wordpress-3-0
http://kovshenin.com/archives/extending-custom-post-types-in-wordpress-3-0/
The second one has an example file that you can download and edit to help you get started.
Cheers,
Paul

Resources