Tagged: portfolio permalinks
-
AuthorPosts
-
December 11, 2018 at 5:51 pm #1043894
Enfold 4.5. WordPress 5.0.
Is there any way to make my portoflio pages fall under “domain.com/portfolio/pagename” and my blog posts fall under “domain.com/news/pagename”? Right now, they are unfortunately combining into “domain.com/news/portfolio/pagename”. I must not be the first to ask this. But, I cannot find the answer.Follow-up question. How will any proposed fix impact categories for both portfolio pages and the blog (news) posts?
Thank you in advance for your time and patience.
LanceDecember 12, 2018 at 1:48 am #1044081Bump. Anyone? Please help!
December 12, 2018 at 9:01 am #1044189Hi,
You can set your permalinks under Settings->Permalink, please have a look there.
Best regards,
RikardDecember 12, 2018 at 4:52 pm #1044399The issue does not appear to be setting the permalinks. I have done that. It is that the URL for my portfolio pages are appearing WITHIN the directory (permalink) of my blog. I do not want this. Example…. “domain.com/news/portfolio/pagename”. “news” being my blog permalink and “portfolio” being my portfolio permalink. I want my portfolio URL to be “domain.com/portfolio/pagename”.
Thank you,
Lance- This reply was modified 6 years ago by contiorg.
December 14, 2018 at 7:07 pm #1045390Hi Lance,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaJanuary 17, 2019 at 11:25 pm #1055256Hello, I am having the same problem. My portfolio items are under the category blog!
here
I would just want it under portfolio.
Thank you for any help
SrishtiJanuary 21, 2019 at 1:57 pm #1056638Hi Srishti,
They should not be in the blog category. This will cause the permalink conflict. Please remove the “blog” category from portfolio items.
Best regards,
VictoriaJanuary 21, 2019 at 10:00 pm #1056890hello Victoria!
Thank you so so so very much for getting back to me.
So I do not have a blog category under portfolio. But it is showing me the portfolio pages under blog permalink!!!
I would just like it to say portfolio not blog.
What can I do or fix. My permalink structures in the settings look fine.I am including the login info below…
- This reply was modified 5 years, 11 months ago by c_srishti.
January 22, 2019 at 1:01 am #1056950I have the permalink set up as
/blog/%postname%/It seems like that is applying to blogposts as well as the portfolio items!??
I would like the blogposts to be under mydomain/blog/postname
And I would like my portfolio items to be under mydomain/portfolio/postnamePlease tell me what can I do to achieve this?
Thanks a lot
SrishtiJanuary 22, 2019 at 1:47 pm #1057188Hi Srishti,
Here is an article for you to consider:
and one more
https://codex.wordpress.org/Settings_Permalinks_ScreenIf you need further assistance please let us know.
Best regards,
Victoria- This reply was modified 5 years, 11 months ago by Victoria.
January 23, 2019 at 11:21 pm #1057969thanks a lot Victoria! I explored the “Portfolio Items Base” and “portfolio category base” in addition to “Category base” and now it seems satisfactory.
I have my blog posts under blog and portfolio under portfolio :)
Haoever is it possible to have something like: %portfolio-category% so that the items fall into their relative category as they are shown on the permalinks? SAnd secondly, how about portfolio sub-categories? Is it possible to have sub-categories and how to show them, is it possible to have one page that shows all the portfolio items and a drop down to select the categories?
Thanks so much for the direction!!!! :D
- This reply was modified 5 years, 11 months ago by c_srishti.
January 25, 2019 at 11:57 am #1058627Hi Srishti,
You might want to consider a plugin to have more flexibility with permalinks.
Here is a great article for you
If you need further assistance please let us know.
Best regards,
VictoriaJanuary 27, 2019 at 7:40 pm #1059413thank you for your help!
January 28, 2019 at 12:53 am #1059477includes/admin/register-portfolio.php
I believe changing the rewrite “with_front” to “false” (lines 34 and 54) will solve all my problems. But, my changes to the file do not appear even thought WP says they saved. I tried saving the file to “includes/admin/register-portfolio.php”, but that did not work.Line 34 ‘rewrite’ => array(‘slug’=>_x($permalinks[‘portfolio_permalink_base’],’URL slug’,’avia_framework’), ‘with_front’=>true),
Line 54 “rewrite” => array(‘slug’=>_x($permalinks[‘portfolio_entries_taxonomy_base’],’URL slug’,’avia_framework’), ‘with_front’=>true),—————————–
c_srishti, I’m not sure what your solution was. It doesn’t matter what I add to the portfolio item base or custom structure. The portfolio base incorrectly will fall under my custom director structure (see below) which is what I do NOT want. This should not require site access. I can’t be the first person to NOT want portfolio to be within my blog directory.
—————————–EXAMPLE:
Permalinks > Custom Structure = /blog/
Permalinks > Portfolio Items Base = portfolioThis happens (bad) = domain.com/blog/portfolio/item-in-my-portfolio
I need this = domain.com/portfolio/item
I need this = domain.com/blog/itemI have the CPT UI plugin, but portfolio is already built into Enfold. Why can’t I use it the way I need?
Added:
It looks like others had this issue in older versions on WP/Enfold. I’m not sure it was ever solved. I’m working my way through this thread. https://kriesi.at/support/topic/change-with_fronttrue-from-portfolio-entries-custom-post-type/- This reply was modified 5 years, 11 months ago by contiorg.
January 28, 2019 at 7:56 am #1059539Hi contiorg,
It was simpler than I thought.
I am not in from of my computer right now, I can double check for you tomorrow, but I know how hard it is to wait to get things fixed…
For permalink I added
%category%/%postname%
Category base(not sure what it was called) I put in: blog
This is considering all my blog posts are under the category blog
Portfolio entries base: portfolio
Portfolio item base: paintingsAs I said I will double check to make sure I got those correct or if my memory…
All the best
Srishti- This reply was modified 5 years, 11 months ago by c_srishti.
January 28, 2019 at 4:14 pm #1059651Thank you for your reply Srishti. If I were to do what you did above, I believe I would see the following: 1) domain.com/blog/<individual-blog-entry> and 2) domain.com/blog/paintings/<individual-painting-entry>. I’m trying to prevent such a parent-child permalink structure between my blog and portfolio.
My previous solution regarding “with_front” ended up working. Perhaps it was a time-based or cache issue. The edits to the register-portfolio.php file finally saved. But, only on my main Enfold theme. I can’t copy the file to my Child theme and get it to save any updates. Now, I have to worry about theme updates overwriting my edits to this file.
Thank you again for your insight!
January 30, 2019 at 8:58 am #1060378Hey!
Have you tried using the filter from the previous thread? I think it is not working because the “with_front” value is set as a string instead of boolean.
/* Change portfolio post type settings */ add_filter('avf_portfolio_cpt_args', 'avf_portfolio_cpt_args_mod'); function avf_portfolio_cpt_args_mod($args) { $args['rewrite']['with_front'] = false; return $args; }
It was set to ‘false’ instead of false previously.
This plugin might help: https://wordpress.org/plugins/custom-permalinks/
Regards,
IsmaelJanuary 31, 2019 at 12:45 am #1060658My previous solution above suddenly ended up working. The edits to the register-portfolio.php file finally saved. I just changed true to false. Perhaps it was a time-based or cache issue. But, only on my main Enfold theme. I can’t copy the file to my Child theme and get it to save any updates. Now, I have to worry about theme updates overwriting my edits to this file.
Is there any way I can make this change on my child theme so I do not need to worry about this edit being overwritten with each update? For now, I saved the register-portfolio.php file to my local drive and noted my changes.
Thank you in advance
January 31, 2019 at 1:40 pm #1060969Hi,
You can remove the default “portfolio_register” function and create your own custom post type registration.
// https://codex.wordpress.org/Function_Reference/remove_action
remove_action('init', 'portfolio_register'); add_action('init','portfolio_register_new'); function portfolio_register_new() { // the portfolio_register function here }
Best regards,
IsmaelFebruary 1, 2019 at 12:42 am #1061315Thank you Ismael. I have the CPT UI plugin and debated creating a new Post Type. This helps. For now, I will stay with the parent theme fix while I look for a less programmatic solution or can devote time to try this in our dev environment.
February 4, 2019 at 4:40 am #1062477 -
AuthorPosts
- You must be logged in to reply to this topic.