I’m using the posts-type Posts to display portfolio items and it looks strange to have portfolio labeled as posts. Is there any way to rename Posts to Portfolio instead to better reflect it’s usage.
Leave a Reply
You must be logged in to post a comment.
I used the following script to rename the default post type:
If you want to simply rename the appearance of posts, rather than creating a custom post type then add this code to your themes functions.php file.
In the interests of transparency I got this code from this article, although I have used similar tricks in the past.
You need to create a Custom Post Type, “Portfolio”.
Posts are Posts. Why try to use them as something they’re not, and then try to change their nomenclature, instead of writing one or two simple functions in
functions.php
, that will result in having both the exact functionality and the exact nomenclature that you want?The get_post_type_object will do the work.
I got this tip from smashing magazine and tested it and it works great
I found this thread when I was looking for a solution to change the post type from one name to an other.
Instead of doing a custom query as suggested by someone in here I simply did this:
The cpt have to ofc already have been created and formated..
Rename posts to portfolio
If you just want to change the admin menu label from Post -> Portfolio, then look at this question:
Changing Admin Menu Labels
[Update]
This plugin Admin Menu Editor looks like it will allow you to change menu labels more easily – I haven’t tested it though.
You will just need to create another custom post with the same capabilities as a regular post. You can then disable the Posts menu with this: