Search Results for 'masonry'

Forums › Forums › Search › Search Results for 'masonry'

Viewing 4 results – 351 through 354 (of 354 total)
  • Author
    Search Results
  • #1193

    Ross
    Keymaster

    Woohoo 🙂 Its working, and as I mentioned before…

    This template is not using the main WordPress loop

    Instead it makes its own query within the page itself:

     query_posts('numberposts=-1&post_type=post&paged='.$paged);
    

    Which I think it not so good..

    I copied the masonry template to sf-masonry and removed this line and added in some stuff to use the main loop 🙂

    if (have_posts()) : while (have_posts()) : the_post();

    🙂

    #1178

    Ross
    Keymaster

    Hey Piotr

    I’m going to try to help and point you in the right direction…

    Basically, a good results template normally is an archive template or the search template (archive.php or search.php), so for this example lets choose search.php.

    Duplicate search.php and call it something else (eg, sf-results.php) – now we have a custom results template that is separate from the rest of your site…

    So for testing, make sure you set the template of your search results (in S&F settings) to sf-results.php.

    Now we have a clean template setup (not masonry yet) so test it is all working make sure you always use the search results url, which is this one: http://maneuver.nazwa.pl/WWW/nstyle/?sfid=55

    Now we know this template is working we need to get it work with Masonry..

    There are many tutorials on how to do this so I would recommend the following one, and make sure all modifications are to sf-results.php.

    http://www.bluelimemedia.com/2012/04/30/jquery-masonry-and-wordpress/

    If you can follow this tutorial and get a layout working (forget about if the search works for now, just make sure the template is working then I can help you with the next steps… 🙂

    BTW, if you can pls send me your login details (and FTP) and I will try to have a quick look myself – I have an idea which might make this all very easy.

    Thanks

    #1169

    Ross
    Keymaster

    I thought I saw the masonry layout working with the search form before?

    Try to clear your cache and disable and caching plugins you may have… There could be something interfering…

    The plugin modifies the results of the main WP loop, so all your template needs to do is use this loop….

    This should be completely possible unless your masonry plugin fetches the results using its own instance of WP_Query – which is not the right way to do it really…

    Did the Masonry layout ever work with the search form? I thought I saw it did!

    #1167

    Anonymous
    Inactive

    I changed the template (for the records) back for the:
    search.php,

    instead of desired one:
    blog-masonry-page.php

    That disabels the filter (changing for this template in the plugin`s setup).

    What can we do now?

Viewing 4 results – 351 through 354 (of 354 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.