Changing The Portfolio URL
-
Is there a way to change the portfolio URL from http://www.domain.com/portfolio to something like http://www.domain.com/sub-menu/portfolio
-
Hi Shane,
At this time, that’s not an option with the Portfolio post type. The “portfolio” slug is hardcoded.
Thanks!
Brandon,
Thank You for your reply.
Will this be added to a future releases? If there are currently no plans may I request this as a potential feature for a later release?
Thanks
Thank You very much.
Take a look at the code provided by the WordPress.com VIP team that allows you to programmatically change the slug at http://vip.wordpress.com/documentation/remove-the-slug-from-your-custom-post-type-permalinks/
Would this method increase the load on my server every time that page is visited?
For anyone else reading this the above link is a dead link at the time of this post. Here is a link I found that provides the information and references the above link.
http://pablovallejo.me/removing-custom-post-type-url/
If this link does not work in the future then search Google for “remove-the-slug-from-your-custom-post-type-permalinks/” You should be able to find what you are looking for.
What do you mean by dead link? Is it timing out or a 404, etc? There is a massive outage across the Internet currently (due to IP routing tables hitting over 512k rows and the default settings on some routers limited to 512k), so one of the routers between you and WordPress.com might be impacted.
For the trick at http://vip.wordpress.com/documentation/remove-the-slug-from-your-custom-post-type-permalinks/ , there is no performance impact (Without looking closer, it looks like the second link borrowed the same code snippets).
Cheers!
I am sorry “dead link” was a very poor choice of words.
When I click on the link I get:
Oops! That page can’t be found.
It looks like nothing was found at this location. Maybe try one of the links below or a search?
I was unaware there was an outage and that very well could be the cause. Thank You for the heads up on this issue.
I will give this a try next week and see how it goes. Thank You for the reference.
Thanks for that. Looking closer, the instructions were switched to “draft” status and, being logged in, I didn’t catch that initially (nor did Ben). I’m looking into that, but the instructions you found look the same.
Cheers!
I’m trying to figure out a few things as well so forgive me if this doesn’t solve your problem, or like me…solved it but caused a few more.
You could potentially create a new page and name it whatever you like, then use the portfolio shortcode to populate that page. The shortcode is found here…
http://en.support.wordpress.com/portfolios/portfolio-shortcode/
I was able to get this to work, but I can’t figure out how to display the featured image as opposed to the full-sized image. Still looking for a solution but thought I’d chime in here in case you’re still trying to find a work-around.
I’m going to second the request for a slug modification option.
You have got the right idea, but by fixing the slug to “portfolio”, it makes the plugin useless.In my case, I am migrating away from a slow themeforest WP theme that supported the Portfolio” post type, and allowed me to modify the slug to match and retain the SEO of an older site.
All you really need is a form field below your post type activation that allows us to change the slug. In the mean time, as a temporary workaround, I made all my posts pages and made the parent with the proper slug to retain the path. Hope to see this option soon!
- The topic ‘Changing The Portfolio URL’ is closed to new replies.