Forums › Forums › Search & Filter Pro › ajax loading not working
- This topic has 86 replies, 2 voices, and was last updated 10 years, 1 month ago by Anonymous.
-
Anonymous(Private) June 3, 2014 at 5:49 pm #1203
i do not know why i do not get this:
http://maneuver.nazwa.pl/WWW/nstyle/?sfid=55but this:
http://maneuver.nazwa.pl/WWW/nstyle/?s=Ross Moderator(Private) June 3, 2014 at 5:52 pm #1204Yeah actually a better way:
Add this to your form:
<input type="hidden" name="sfid" value="55" />
And change the action of your form to
http://maneuver.nazwa.pl/WWW/nstyle/
or probably better yet<?php echo home_url(); ?>
🙂
Anonymous(Private) June 3, 2014 at 6:49 pm #1207O yeah!
😀
//one more issue[:(]:
https://www.dropbox.com/s/2f8ggd8otdocf3p/2014-06-03%2019h46_15.mp4
-i can not see the whole list (because of the footer) after picking any post to view.
Ross Moderator(Private) June 3, 2014 at 7:25 pm #1209Hey Piotr this is because your page height is dynamically being set by your scripts – not sure which one to be honest but probably something to do with masonry.
You need to make sure that masonry refreshes and does its recalculation once the new page content has loaded – you can detect when the AJAX has finished loading in jquery here:
http://api.jquery.com/ajaxcomplete/
Then once you detect Ajax complete, you should tell masonry to refresh (I’m not sure how to do that with your specific setup)
Thanks
Anonymous(Private) June 4, 2014 at 7:02 am #1226Um trying to find something with one of the tags (“niebieski” – btw it`s a colour and means “blue”).
No results appears.
http://maneuver.nazwa.pl/WWW/nstyle/?s=niebieski&sfid=55
What do i have to improve?
Regards!
Piotr
Ross Moderator(Private) June 4, 2014 at 10:52 am #1231Hey Piotr
The text search uses the default wordpress text search – so you cannot search tags etc – it searches in titles and body content – so you must include this word in the main content, or alternatively you could install relevanssi or a similar plugin which improves text search and allows for text search in tags etc 🙂
Thanks 🙂
Anonymous(Private) June 5, 2014 at 7:09 am #1296Hello Ross,
Thanks for last reply. I did not answer for my previous question:
Thanks again. Finally i had to switch off tha ajax filtering.
How can i call the information: “Sorry there are no results matching your criteria”?
Have a nice day!
Piotr
– Are you able to answer for the above mentioned ticket as well, please?
thank you very much,
Piotr
Ross Moderator(Private) June 5, 2014 at 10:59 am #1299Hey Piotr
Sorry I missed that!
Yeah its pretty easy, edit the search template I created for you
And you have this code for your main loop:
if (have_posts()) : while (have_posts()) : the_post(); ?> <?php get_template_part( 'blog-post-format/blog-post', get_post_format() ); ?> <?php endwhile; ?> <?php endif; ?>
Before the endif you need to add an else so it would be like:
if (have_posts()) : while (have_posts()) : the_post(); ?> <?php get_template_part( 'blog-post-format/blog-post', get_post_format() ); ?> <?php endwhile; ?> <?php else: ?> No Posts Found <?php endif; ?>
-
AuthorPosts