Okay
  Public Ticket #1629876
Portfolio Archive page
Closed

Comments

  • pluckvermont started the conversation

    Is there any way to disable the Portfolio Archive page, or set it to draft so it is not public?


  • [deleted] replied

    Hi there,

    Sorry but this option is not possible to do in the plugin that we use to power our theme portfolio area.

    Thanks for your understanding!

  • pluckvermont replied

    So, I am confused. In this article https://documentation.laborator.co/kb/kalium/creating-a-portfolio-page

    It says there are 3 ways to create a portfolio, but option 1 will be live no matter what. So if you choose to create your portfolio using option 2 or 3, the archive portfolio will still be live? So you'll basically have 2 portfolio pages? That seems odd.

  • [deleted] replied

    Hi pluckvermont,

    I just talked with one of our team members and he send me this code that you can add in the functions.php file.

    // Disable portfolio archive
    function portfolioposttype_args_disable_archive( $args ) {
        $args['has_archive'] = false;
        return $args;
    }
    add_filter( 'portfolioposttype_args', 'portfolioposttype_args_disable_archive' );

    And then after you do that you need to Flush rewrite rules.

    Have a great day!