-
AuthorPosts
-
February 21, 2019 at 4:32 am #1069774
I have a blog posts at “domain.com/news/” using the permalink Custom Structure in WP “/news/%postname%/”. I am also using the Enfold portfolio Post Type at “domain.com/portfolio/” using the Portfolio Items Base “portfolio”. By default, WP is creating “domain.com/news/portfolio/”. Since I don’t want “portfolio” as a child of “news” in my permalink, I fixed it the following way…
I have changed “with_front” to “false” in the following file, “includes\admin\register-portfolio.php” to fix this. But, my updates are naturally overwritten with each Enfold update since it is not in the Child theme. Is there a better way to handle this in the Child “functions.php” file or somewhere else? My code is below. Login below.
Line 37
‘rewrite’ => array(‘slug’=>_x($permalinks[‘portfolio_permalink_base’],’URL slug’,’avia_framework’), ‘with_front’=>false),Line 57
“rewrite”=> array(‘slug’=>_x($permalinks[‘portfolio_entries_taxonomy_base’],’URL slug’,’avia_framework’), ‘with_front’=>false),Thank you in advance!
February 21, 2019 at 3:57 pm #1069980Apologies. I included a temporary admin login but not the login to view the site. You will need both. Enter the login credentials to view the site (below) and then enter the admin login once the WP Admin login screen appears. Please help.
February 22, 2019 at 4:46 pm #1070386Anyone have ideas on how to use Enfold’s child theme to handle “with_front” on Enfold’s default Portfolio post type?
February 24, 2019 at 2:21 pm #1070911August 22, 2019 at 11:18 am #1129950Hello, Support,
I have the exact same problem (only using /blog/ instead of /news/) but can’t figure out how the code in the child themes functions.php has to be written to set ‘with_front’=>false for the custom post type portfolio.Could you please paste the complete function or explain a bit more detailed?
Thanks a lot.
GregorAugust 26, 2019 at 8:56 pm #1131097Hi,
Please create your own ticket so we can check further.
Best regards,
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.