query

Home Forums MapPress Support query

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11672
    robin64
    Participant

    <?php echo do_shortcode (‘ [mashup query=”post__in=3,4,5″]’ ); ?>   it’s  OK

    but if:

    <?php  $x = “3,4,5”;

    echo do_shortcode (‘ [mashup query=”post__in=  ….  ????…. “]’ ); ?>

     

    thanks…….

    #11674
    Chris
    Keymaster

    Hi,

    I think this is what you need:

     

    $x = "155,189";
    
    echo do_shortcode ( "[mashup query=\"post__in=$x\"]");
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.