Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #942594

    Hi! i´m creating a link to a masonry page, link directing the masonry already sorted to a specific category. I´m using this code i found in other thread and it works great, but only if the category has only one word. How can i do it with a category with many words, for example “html web sites”

    i can´t seem to make it work, this is what i am using, i tried using + between category name words but not working

    add_action(‘wp_footer’, ‘ava_auto_click’);
    function ava_auto_click() {
    if ( $_GET[“psort”] == “html” ) {
    ?>
    <script>
    (function($){
    $(window).load(function() {
    $(‘.html_sort_button’).trigger(‘click’);
    });
    })(jQuery);
    </script>
    <?php
    }
    }

    #942599

    Nevermind, i found a solution using “-” between words. You can close this! thanx!

    #942688

    Hi,

    I’m glad you got this resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Link to filtered portfolio’ is closed to new replies.