Okay
  Public Ticket #1411388
Portfolio Custom Query not working
Closed

Comments

  • dritomos started the conversation

    Hi there, I am trying to create a portfolio page which only shows specific categories. I created the page and set the template to portfolio page. Checked custom query under portfolio settings and selected the right categories in the custom query tab. Yet it still shows all categories: http://test.lightspace.org/projects/

    Am I missing something?

  • [deleted] replied

    Hi there,

    Can you provide us with WP Credentials, we have to look from close view. Your information is safe (private) in this thread. 

    To include your credentials click Insert Credentials button in editor toolbar. (See how)

    Thank you.

  •   dritomos replied privately
  • [deleted] replied

    Hi Drito,

    I was able to fix your issue by disabling the Archive of Portfolio and removed check from Masonry Style Portfolio , function.php has some code now so you could use Parameters and Options to manage Custom Query. You can edit the code below on Custom Code.Custom Code.

    function portfolioposttype_args_disable_archive( $args ) {
        $args['has_archive'] = false;
        return $args;
    }
    add_filter( 'portfolioposttype_args', 'portfolioposttype_args_disable_archive', 100 );

    Thank you.