Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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!

    #1069980

    Apologies. 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.

    #1070386

    Anyone have ideas on how to use Enfold’s child theme to handle “with_front” on Enfold’s default Portfolio post type?

    #1070911

    Hi contiorg,

    Well, only if there is some hook or filter that you could use.

    You can use this filter to add your value to the args array
    Image 2019-02-24 at 14.21.10.png

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1129950

    Hello, 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.
    Gregor

    #1131097

    Hi,

    Please create your own ticket so we can check further.

    Best regards,
    Basilis

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.