Support » Plugin: WordPress Portfolio Plugin (WP Portfolio) » Multi group show multi same site

  • Hello,

    Thank you for the plugin, he’s really nice.

    I’ve a trouble with this plug in.
    If I make a site in the portfolio and put 2 (or more) group for this site, it show on front 2 same site (1 for each group). Is it possible to make multi group and show only 1 site (because in my case, 1 site can have several group).

    Thank in advance,

Viewing 2 replies - 1 through 2 (of 2 total)
  • May be I got an idea.

    If I don’t use Show All, it can work (i just have to create a general group to put all the site in, but I don’t have to use the ‘show all’ group by default because of multiple same site.

    In line 3535 in the wp-portfolio.php, i got :

    if (!$isWidgetTemplate && $show_filter_buttons) {

    $filter_buttons_block = ‘<div class=”button-group filters-button-group”>

    <button class=”button ‘ . (!in_array($defaultFilter, array_keys($groups)) ? ‘is-checked’ : ”) . ‘” data-filter=”*”>’ . __(‘Show all’, ‘wp-portfolio’) . ‘</button>’;

    foreach ($groups as $group_id => $group_name) {

    $filter_buttons_block .= ‘<button class=”button ‘ . ($defaultFilter == $group_id ? ‘is-checked’ : ”) . ‘” data-filter=”.group-‘ . $group_id . ‘”>’ . $group_name . ‘</button>’;


    $filter_buttons_block .= ‘</div>’;

    $content = WPPortfolio_replaceString(‘%FILTER_BUTTONS_BLOCK%’, $filter_buttons_block, $content);


    How Can I modify to put an other group by default ? (and not the ‘Show all’ one)

    Thanks in advance

    Plugin Author puravida1976



    This should be possible by specifying only the groups you want shown on the front-end. Have you tried using the WP-Portfolio shortcode generator or looking in the documentation for all of the various customizations? I would think there is already a way to do what you want.

    If you still have trouble, please let me know what steps you took and we’ll dig in to give some suggestions or extend the functionality, if necessary.

    Thank you,


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multi group show multi same site’ is closed to new replies.