Change the Permalink on Wordpress - wordpress

I want to change the permalink of the post/category that I have to custom link.
I'll attach the screenshot below. Any idea on how I can change the Permalink to custom link. Currently, I am allowed to edit the vista-hotel. Thanks in advance

To change the way WordPress uses permalinks is quite a simple process.
Go to the Settings section of your WordPress dashboard
One the left side of the dashboard under the Settings control, you should see one for Permalinks. This is what you should click.
Select the method you want to use and click the Save Changes button.
The “Custom Structure” located in the permalink settings page allows you to set up a more detailed method to create addresses. For example, you could include author names or even the precise time for each new post. The tags you can use include:
%year%
%monthnum%
%day%
%hour%
%minute%
%second%
%post_id%
%postname%
%category%
%author%
To use these tags, select the Custom Structure radio button. After the domain’s address, enter in each tag you want to include with a / in between. Here is an example:
/%author%/%monthnum$/%day%/%year%/%postname%/
This would show the author’s name, the number of the month, the day, the current year and the name of the post. For instance, it could look like:
http://yourdomain.info/john_doe/12/25/2015/name-of-the-post.
Don't forget to 301 the old urls once you have updated the permalinks

Related

Permalink Goes to Old Page

I have been working on a site created by another developer. I have been fixing the site to make it more visually appealing. I am also responsible for adding new events and pictures which i self taught myself to do.
I have a situation where I have a page with the following permalink:
http://www.cic-nj.org/events/
The problem is that this link goes to a page that does not show the edits that i am making under that page and there is no other page listed that shows the info it actually displays.
this is what I have in the editor box on wordpress that I want it to show.
enter image description here
this is what appears when url is used or when i click view
enter image description here
I have been sure to click update and renewing page to view it. it's like its going to a ghost page i can not edit.
Can anyone point me in the right direction on this?
Thanks in advance...
You are experiencing "slug collision": more than one thing in your WP install has the same slug.
The problem that you have is events is a custom post type, with a slug set to events - therefore the url http://www.cic-nj.org/events/ is directing to the listing of events. This is an automatic feature of WordPress. (Note - you can see more details to support this conclusion by the fact that you've got individual events accessible at url's such as http://www.cic-nj.org/events/blue-apron-info-session/ )
Note that custom post type slugs will always take priority over a page / post slug.
You have a couple of options:
If you want a page to display the content that you've created, the page's slug / permalink must be different than events
If it's acceptable, you can rename the slug of the "events" custom post type to something different. This has the potential consequence of losing SEO "juice".
If it's acceptable, you can remove the custom post type, if you aren't going to use them any longer.
NOTE: It may be tempting to ask "how do I remove the custom post type", or "how do I change the post type slug". Those are different questions, and if you need to ask, they should be asked in a different question - not added as a comment below.

Wordpress author name hiding

I have created a website and Now I want to write a post. The website managed by wordpress.org. The problem is, in the published page, the my email is showing on the page as author. How to hide this?
Actually I want the remove the mail from the post :
Humm, when you say hosted, is it fair to assume that you are using a hosted version or wordpress? If so, you should be able to tweak the display of your posts in your wordpress settings. For my theme, I can twiddle whether or not an author tag appears in a blog post by going to theme options > blog page. Your mileage may vary depending on your theme.
If your theme does not let you turn off the author tag, you may want to just change your name to something other than your email address. If I want a name to appear rather than an email address, I can set a displayable name in the wordpress user settings. I just edit the user to include a name string.
Does that help?

Force post ID to be slug

I'm using a heavily custom theme that uses needs custom permalinks to be in this format:
/%category/%postname%/
but, i want my permalinks to be in this
/%category/%post_id%/
Is there a way to force the %post_id% to be set as slug without changing anything in the Permalinks Settings?
** To explain this a bit more, my client wants to keep the title of a post in the admin, but he wants it visible only in the admin. So what i need is to keep the titles of the post and force the post_id to be the slug
Go to Dashboard->Settings->Permalink
In custom structure use /%post_id%/
and save it

Wordpress template page for custom posts

I have a custom post type (that I'm using on a template page), the custom post type is called 'Headerhome'.
When I post say a gallery there I'm trying to get it to redirect to 'single-Headerhome.php', yet it always just goes to 'single.php'.
The name of the custom post type itself is arbitrary, the name of the templage page it's on is 'home'.
I'm really confused, I'm not the best at WP yet so when something simple like this doesn't work I have no idea how to fix it, even after pouring over the codex for an hour.
The name of the custom post type itself is arbitrary, the name of the templage page it's on is 'home'.
Reading this implies that you have a home.php file in your theme, which would automatically display as your front page of your site. This may not be what you desire? More on this here: http://codex.wordpress.org/Creating_a_Static_Front_Page
An example of a custom post type might be an Event. The Event might have custom fields associated with it, like Location, Date, Time, Description. We would probably want new Events to show up on our front page, but also would want to create a custom theme file so when a user clicks on an Event from the home page to view the Event then the Event page shows our Date, Time, Location, Description, etc. We would then create a single-event.php to do this and put in any custom code their.
So (another example), a custom post type of Fruit would have an associated theme file of single-fruit.php. If their is no single-fruit.php then Wordpress will use single.php as the default theme file to display. More on this here: http://codex.wordpress.org/Post_Types#Template_Files
Hope this helps set you in the right direction.

How can I update my permalink structure in wordpress?

This is the old url of my blog (wp 2.2)
http://myblog.com/category-name/post-name
ex.
http://myblog.com/shoes/i-like-shoes
and Im trying to change it to
http://myblog.com/post-id/post-name.html
ex.
http://myblog.com/717/this-is-my-first-post.html
Im moving my content from wp2.2 to wp2.8 and i want to change all the categories for the current content from whatever it is now to "classic"
The problem of course is that some of my pages have a high page rank and I need to maintain this...
this is becoming a headache for me to figure out.
your help is appreciated!
Go to: http://myblog.com/wp-admin/options-permalink.php. Or, if you want to navigate manually :), go to your wordpress dashboard. In the Settings menu go to "Permalinks".
Also see http://codex.wordpress.org/Using_Permalinks for more detail, especially the fields for making custom permalinks.
Edit
To quote the above,
Using %category% with multiple categories on a post, or %tag%
When you assign multiple categories to a post, only one can show up in the permalink. This will be the lowest numbered category (see Manage Categories). The post will still be accessible through all the categories as normal.
The same thing applies to using the %tag% field in your permalink structure.
So... As long as "classic" is the lowest numbered category you use, that will work as the category name in the permalink.
Your change in structure however will break any external links pointing to your posts so your page rank is going to change as well. Unfortunately you need to choose which is more important: changing to permalinks without category names, or maintaining the pagerank of old posts.
If you just changed category names, you can do a redirect in htaccess for just the category name, IF the rest of your URL structure remains the same, i.e. date and post name.
If you changed more than just a cateory name, or don't want to mess around with htaccess, then use something like the Redirection plugin to easily handle redirects.

Resources