Okay
  Public Ticket #677257
Portfolio
Closed

Comments

  • Fabio started the conversation

    hello :) me again.

    Is it possible to split the Portfolio? On each Page it shows me the same Portfolio.

    Normaly I have one Page called "Artwork" and the other Page is called "Grafik"...

    So on my "Artwork" Page I want one portfolio with all my Pictures and Photos and their Filters ... like Beauty, Fashion aso....

    on My "Grafik" Page I want a nother Portfolio with all my Logos and Brandings aso. .. and different Filters, like, Logo and Branding aso.

    it doesn't matter which page im in. It always shows me one portfolio. i just want to split it. Please Help me.

    Thankyou


  •  1,810
    Support replied

    Yes specify the portfolio category name in the url to get the desired portfolio category items.

    For example

    http://clapat.ro/berger-wordpress/portfolio_category/branding/

    thanks

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Fabio replied

    hmm... but now there are no filters at all.

    How can i explain.

    I need one Portfolio Page named \"Artwork\" ... This Page contains the Filter \"Beauty, Fashion, People aso..\"

    The second Portfolio Page i need is called \"Grafik\" ... This Page contains the Filters \"Branding, Web, Logo Design aso...\"

    What you showed me has only one title \"Branding\" and where is the rest?

  • Fabio replied

    Here a Grafik on how it should look like :) hope you understand now

  • Fabio replied

    a bit smaller the image :)

  •  1,810
    Support replied

    Hi Fabio, they only way you can group the portfolio items by category pages is the one from my previous comment. Otherwise it would be custom work.

    thanks

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Fabio replied

    ok so you mean its not possible the way i want it. and how about the custom work? how can i customize it?

  •  1,810
    Support replied

    Create a new page template out of portfolio template page (portfolio-page.php) so that the query will include only certain categories. Requires good php knowledge. thank you

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Fabio replied

    hmm can you maybe help me a little bit? like giving some hints ... i duplicated the php but i won\'t see it anywhere.

  •  1,810
    Support replied

    Just duplicating does not work. You need also to change the template name and then change the way portfolio items are queried

    $paged = (get_query_var(\'paged\')) ? get_query_var(\'paged\') : 1;

    $args = array(

    \'post_type\' => THEME_ID . \'_portfolio\',

    \'paged\' => $paged,

    \'posts_per_page\' => 1000,

    );

    $pcats = get_post_meta(get_the_ID(), THEME_ID . \'_portfolio_category\', true);

    if( $pcats && $pcats[0] == 0 ) {

    unset($pcats[0]);

    }

    if( $pcats ){

    $args[\'tax_query\'][] = array(

    \'taxonomy\' => \'portfolio_category\',

    \'field\' => \'ID\',

    \'terms\' => $pcats

    );

    }

    $gallery = new WP_Query($args);


    so that it will select portfolio items you want only from certain categories.

    thanks

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy