New Front EN › Support Forums › Tokyo Theme Support › project permalink modification
Tagged: permalink project url portfolio
- This topic has 4 replies, 2 voices, and was last updated 10 years, 7 months ago by satori.
-
AuthorPosts
-
May 14, 2014 at 5:42 am #3279SylvioParticipant
Hello
The portfolio have originally the following url structure : /project/portfolioitems
If someone use the link /project he becomes a list of portofolios displayed as a list of articles.
What I would like to do is to build a page using a portfolio template such as 3 columns with ie. the permalink /portfolio and I would like that the portofolio items are then using the url /portfolio/portfoliositem.
Is it possible ?
How could we change the /project permalink ?Thanks for help
RegardsMay 14, 2014 at 11:18 am #3287SylvioParticipantI also wanted to know if there is a (simple) way to add the “Background/slider source of images” to the project(portfolio) items as for page and post.
May 14, 2014 at 11:41 am #3289satoriKeymasterHey Sylvio,
I will go over the questions in the same order:
1). This is out of the scope of the theme back-end capabilities, yet I will try to help out: one needs to alter the “rewrite” array for the code which generates the “project” custom post type. This is located in the theme’s functions.php file – I’ve prepared a custom one for you, which contains the necessary changes (line 383). Please unzip the archive, and upload the resulting file into the theme folder via ftp (/wp-content/themes/Tokyo). After that you might need to flush the permalink cache – you can do this by going to the “Settings -> Permalinks” admin section, changing the radio button to any other setting than your current one, saving the settings, and then resetting the radio to the one you had originally (“post name” I presume).
2). I agree, this would be a good addition to the theme’s functionality! I’ve prepared an updated file – please download this archive, unzip it, and upload the contained file into the following folder:
/wp-content/themes/Tokyo/includes/supersized/includes/
replacing the existing file. Then refresh the website – the background choice options should now appear on the projects as well.Please let me know if the above information helps achieve the desired outcomes!
Sincerely,
Andrii / Satori StudioMay 16, 2014 at 6:41 pm #3314SylvioParticipantThank you very much. It is working except I can’t use the /portfolio permalink for the portfolio page. Whatever I can live with this :-)
May 19, 2014 at 10:03 am #3323satoriKeymasterHey Sylvio,
you’re right, the /portfolio permalink will be reserved for the taxonomy, unfortunately I think there’s no way we can make it usable by a page in this case, this is just how WordPress permalink structure works.
Sincerely,
Andrii / Satori Studio -
AuthorPosts
- You must be logged in to reply to this topic.