-
AuthorSearch Results
-
June 3, 2014 at 5:14 pm #1193
In reply to: ajax loading not working
RossKeymasterWoohoo 🙂 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-masonryand removed this line and added in some stuff to use the main loop 🙂if (have_posts()) : while (have_posts()) : the_post();🙂
June 3, 2014 at 4:19 pm #1178In reply to: ajax loading not working
RossKeymasterHey 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.phpand 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
June 3, 2014 at 2:48 pm #1169In reply to: ajax loading not working
RossKeymasterI 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!
June 3, 2014 at 2:40 pm #1167In reply to: ajax loading not working
AnonymousInactiveI changed the template (for the records) back for the:
search.php,instead of desired one:
blog-masonry-page.phpThat disabels the filter (changing for this template in the plugin`s setup).
What can we do now?
-
AuthorSearch Results