Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Flexform › Portfolio Permalinks
New Landing › How can we help? › Themeforest Theme Support › Flexform › Portfolio Permalinks
- This topic has 25 replies, 10 voices, and was last updated 10 years by Mohammad – SUPPORT.
-
Posted in: Flexform
-
April 12, 2013 at 8:54 pm #1443
Currently the permalink on my Portfolio post pages look like http://mancel.tv/?portfolio=post-name
How do I get it to be http://mancel.tv/work/post-name
Thanks in advance
April 12, 2013 at 10:45 pm #1477Hi,
Edit this file: flexform/includes/custom-post-types/portfolio-type.php
Change : ‘rewrite’ => false,
to : ‘rewrite’ => array( ‘slug’ => ‘work’ ),
Regards,
————————————————————————————————————Cosmin
Support AssistantApril 18, 2013 at 2:23 pm #2060Hi,
Is it possible to get ‘portfolio category’ instead of work.
url.com/”portfolio category”/slug
Thanks in advance
April 18, 2013 at 4:20 pm #2083@vmedia I’m assuming you want that structure on the single portfolio page? I’m curious about that too, but I’d want to keep my previous url.com/work/ and just append the rest to the end.
–the same goes for the blog page–
@cosmin My blog posts (not portfolio posts) now look like url.com/blog on the main blog page, which is good. But on the single blog posts it takes the /blog/ out and just includes my custom structure in the WP permalink settings — url.com/category/postname — How do I change it to url.com/blog/category/postname ?April 18, 2013 at 6:43 pm #2091I would also like to achieve what @mancel is asking for. i.e:
for portfolio pages:
url.com/work/”portfolio category”/slug
for blog posts:
url.com/blog/category/postname
@cosmin There are two places in that file that say ‘rewrite’ => falseWhen I replace both instances with ‘rewrite’ => array( ‘slug’ => ‘work’ ), the /work page shows up as an archive, as expected, and so does each portfolio category. However, the portfolio single page is a 404
When I replace only the first instance with your code, only the portfolio category archive works as expected, but the portfolio single shows up as ?portfolio= in the URL and the main portfolio archive shows up as ?post_type=portfolio
When I replace only the second instance with your code, the category archive and the main archive work as expected, but the portfolio single page is a 404
I hope that helps? Is there a way to make this work as a normal custom post type, i.e. without the ?= stuff?
Many thanks
April 18, 2013 at 10:10 pm #2132Hey guys,
This might be easier for you to try – http://wordpress.org/extend/plugins/custom-post-type-permalinks/
– Ed
April 18, 2013 at 11:05 pm #2163@swiftideas That did help but now the portfolio (work) page is not filterable and is displaying in masonry style only. I also had to keep the array(‘slug’=>’work’), changes from before to keep the portfolio permalinks correct. How do I fix the portfolio display problem I now have?
April 19, 2013 at 1:30 am #2167Thanks for the quick reply Ed
For me, this plugin created 404s for the portfolio single pages. I’m not sure what else to do.. Any ideas?
April 19, 2013 at 6:34 pm #2226Can you try regenerating your permalinks by visiting Settings/Permalinks?
Also, single posts will use whatever permalink structure you have defined in WordPress, our theme doesn’t affect that.
Regards,
————————————————————————————————————
Cosmin
Support AssistantApril 22, 2013 at 2:21 pm #2447Using that plugin, I am able to change the portfolio page to a ‘work’ page, but like @mancel mine is also not filterable.
I tried regenerating the permalinks, but I’m still getting 404s for the portfolio item pages. What settings would you recommend with that plugin? And should I be changing both instances of the rewrite code?
I think we basically just want to be able to use the portfolio without the = and ? stuff in the url.. I hope you can help.
Thanks
April 22, 2013 at 2:37 pm #2448@bn86 Exactly. No ‘=’ and ‘?’ and replace the word ‘portfolio’ with our choosing. One change to the portfolio seems to mess up the standard blog sections and vice versa.
April 22, 2013 at 10:47 pm #2572Hi guys,
Took another little look into this. If all you want to do is change the rewrite structure, and the “portfolio” name, then do this – http://support.swiftideas.net/knowledgebase/portfolio-url-rewrite/
and also this – http://wordpress.stackexchange.com/questions/53298/custom-post-type-url-rewriting
– Ed
April 23, 2013 at 8:43 am #2595Thanks very much Ed! That’s very useful.
I’ve just added a comment to the knowledgebase article in case it helps other people. Perhaps you could check it out?
Cheers
April 24, 2013 at 9:09 pm #2837This is what my final code looks like.
I also changed the Permalink structure in WP Settings to /blog/%category%/%postname%/
Everything looks good so far. Thanks a lot Ed.
May 13, 2013 at 6:16 am #4634Hi guys! My portfolio permalink work looks like http://samokhinteam.ru/?portfolio=147 How do I get it to be http://samokhinteam.ru/?portfolio=krasnoyarskij-gorodskoj-portal In permalink settings I set /%postname%.html But my new added work link looks like p=147. I do not know how it happened, but my previos works looks normal.
-
Posted in: Flexform
You must be logged in and have valid license to reply to this topic.