Jump to content

[SOLVED] Filtering result on the basis of multi select


zaib
 Share

Recommended Posts

I'm filtering result on the basis of multi select, see the code

<div class="col-xs-12 col-sm-9">
  <div class="tab-content">
    <?php 
    foreach($page->continents_1 as $continent){
      $test = str_replace(' ', '', $continent->title);
      $get_countries = $page->find("template=t2Country, continents={$continent->title} ");
      foreach($get_countries as $country){
        echo "<div class='$test tab-pane' id='$test'><span>$country->title</span></div>";
      }
    }
    ?>
  </div>
</div>

if you see the image Europe is showing only "France" while if you see the developer tool img europe has more than one countries 

so it should be shown as Europe=>France,Spain,London, 

All data is coming but something wrong while filtering

I'm mapping two fileds "Continents" and "countries"

Any help would be appreciated.

Thank you.

countries.png

Screen Shot 2017-10-09 at 3.31.02 PM.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...