Hi,
I would like to setup the portfolio part of the homepage to access the correct filter from another page. So on homepage I have these links:http://ingdividual.sk/projekty-rodinny-obytne-domy-interierovy-dizajn?filter=obytne
which I then on the projects page set the activeFilter with $_GET variable:
<!-- Portfolio Filter
============================================= -->
<ul id="portfolio-filter" class="portfolio-filter clearfix" data-container="#portfolio">
<li class="<?php if (!isset($_GET['filter'])) echo "activeFilter" ?>"><a href="#" data-filter="*">Všetky</a></li>
<li class="<?php if ($_GET['filter'] == "obytne") echo "activeFilter" ?>"><a href="#" data-filter=".pf-icons">Obytné a rodinné domy</a></li>
<li class="<?php if ($_GET['filter'] == "interier") echo "activeFilter" ?>"><a href="#" data-filter=".pf-dizajn">Interierový dizajn</a></li>
<li class="<?php if ($_GET['filter'] == "obcianske") echo "activeFilter" ?>"><a href="#" data-filter=".pf-obcianske">Občianske stavby</a></li>
</ul><!-- #portfolio-filter end -->Which is correctly set, but the filtering is not working.
Can you help me with this? Or is this a method to make this work?
Thanks,
Peter.
