Okay
  Public Ticket #1876902
show only specific category in showcase
Closed

Comments

  • Bernhard Gratzl started the conversation

    i am using "showcase" as my starting page. Is it possible to only display portfolio-pages of a specific category?

    my aim: in the end i would like to have one showcase page displaying only category A and one showcase page only displaying category B.

    how would i do that? sorry if i am blind but i cant any option to do this...

  •  1,974
    Support replied

    Hi Bernhard,

    you can have category specific pages in Wizzaro, for example:

    http://clapat.ro/themes/wizzaro-wordpress/portfolio_category/branding/

    displayed in the 'cards grid'

    To display only a specific category in showcase you need to change the arguments of the query that selects the portfolio items.

    Open showcase-page.php and modify

    $wizzaro_args = array(
    'post_type' => 'wizzaro_portfolio',
    'paged' => $wizzaro_paged,
    'posts_per_page' => 1000,
    );

    https://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters

    and eventually create two page templates (one for each category)

    We can do this custom work for a fee if you are interested.


    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Bernhard Gratzl replied

    thanks i managed to get the filter working.

    at first i just edited the file "showcase-page.php" and its working.

    now i just copied the file and renamed it to "test.php".

    now if i go to pages => "Showcase" on the right where i can choose the template i now have 2x the option "Showcase_Template".
    they are both working.. the first one shows only category A, the other one only category B.
    the only thing left is how do i change the title in the tempalte drop-down menu so its easier later to choose the right template?

  •  1,974
    Support replied

    Hi ,

    just go in the file header and change the name of the template

    /*
    Template name: Showcase 2 Template
    */


    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Bernhard Gratzl replied

    oh wow its that eays haha... thought this i just a hint for developer...

    thanks for your help i got everything running!