Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter darksteir

    (@darksteir)

    if i try that i use the same problem

    <?php
       $posts = $media_cat_lib->get_mediacategory_shortcode(array('returnposts'=>1,'cats' =>'helioc2','orderby' =>"slug",'order' => "DESC" ) );
    ?>
    <?php
    foreach($posts as $rpost):
    ?>
    <h1 id="opj">
    <a target="_BLANK" href="<?php echo wp_get_attachment_url( $rpost->ID);?>">
    <?php
    echo get_the_title($rpost->ID);
    ?>
    </a>
    </h1>
    <?php
    endforeach;
    ?>
    <?php
    endif;
    ?>
    Plugin Author timmcdaniels

    (@timmcdaniels)

    Hi darksteir,

    Version 2.1 will allow this by using the operator option:

    [mediacat cats=”veloce,brochure” orderby=”date” order=”DESC” operator=”AND”]

    Thanks,

    Tim

    Hi,

    Is this possible on the frontend search form too?

    At the moment, if I click multiple categories, it brings up the same issue as darksteir, where it brings up all the media from veloce and brochure, and not just the media that have veloce and brochure in common.

    Thanks,
    Jake

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘multiple cats in shortcode’ is closed to new replies.