Support Forums for LiveMesh Themes & Plugins › Forums › Agile Theme Support › Change the portfolio url
- This topic has 7 replies, 3 voices, and was last updated 11 years, 10 months ago by
Raghavendra.
-
AuthorPosts
-
April 3, 2014 at 10:39 am #5643
permagnus
MemberHi,
On my site the urls are like http://www.mysite.com/portfolio/ and http://www.mysite.com/portfolio/some-item
The I have another page setup at http://www.mysite.com/cases/. Can I change thee url of the portfolio items to http://www.mysite.com/cases/some-item ?
April 5, 2014 at 4:27 am #5689Raghavendra
ModeratorNo problem. You can change them to any URL. The URL has nothing to do with the portfolio items.
April 5, 2014 at 4:39 am #5691permagnus
MemberHow do I change the url?
April 5, 2014 at 10:03 am #5704Nexus
ModeratorYou will have to edit the file (theme folder) / framework /presentation / custom-post-types.php line number 203, please modify the rewrite attribute from “portfolio” to “cases”. Hope that helps!
April 8, 2014 at 8:39 am #5750permagnus
MemberThis works great but I have a custom page at /cases and this is now overriden with the default portfolio page. Can I somehow disable the default portfolio page?
April 9, 2014 at 1:23 pm #5785Raghavendra
ModeratorWe are may be trying too much into this question. Probably you do not need to change the rewrite value then. All you need is to edit the page permalinks as described below –
http://digwp.com/2010/07/optimizing-wordpress-permalinks/
Pls see the section titled – “Post/page-specific permalink structures (slugs!)”. Pls let us know if we are missing something here. Thanks!
April 9, 2014 at 5:11 pm #5792permagnus
MemberThis did not really help me.
I have a custom page located at /cases
I have the portfolio items at /portfolio/some-item
I want to have the portfolio item /cases/some-time and still keep the custom page at /cases
If I try Nexus solution I have the right structure but there seems to be a “generic” page the takes over instead of my custom page at /cases.
Can I disable the generic page at /cases when I move the portfolio items to /cases/some-item?
April 10, 2014 at 10:31 am #5809Raghavendra
ModeratorPls change the line number 198 of the framework/presentation/custom-post-types.php from
'has_archive' => true,
to
'has_archive' => false,
and see if the generic page goes away. Once you set the value to false, that generic archive page will not be available to you. You can still have cases as permalink and individual portfolio items should not get affected.
-
AuthorPosts
- The forum ‘Agile Theme Support’ is closed to new topics and replies.