Ross

Forum Replies Created

Viewing 10 posts - 10,251 through 10,260 (of 10,351 total)
  • Ross Moderator in reply to:
    ajax loading not working
    #1231

    Hey 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 ๐Ÿ™‚

    Ross Moderator in reply to:
    Repeatable meta data fields
    #1223

    Hey Hugh

    Yeah if you put the titles in a seperate key then it becomes searchable, but its still pretty inefficient and your better off doing as you have mentioned and setting up custom taxonomies where possible..

    WordPress taxonomy queries are optimised so they are fast, efficient and accurate – whereas meta searches are by nature slower, in some of my testing I’ve created complex meta queries and found the page can take many seconds longer to load – so yeah way more inefficient – go taxonomies!

    Let me know how you get on ๐Ÿ™‚

    Ross Moderator in reply to:
    Range search
    #1221

    Hey Vartan

    Unfortunately you can not do comparisons like that using custom taxonomies.

    Taxonomies are never treated as numeric data so you can perform operations like that in the database..

    As is shown in the demo, this field is a custom field / post meta – not a taxonomy.

    You will need to add meta data to each post with the year, then you can use the field type “Post Meta” to create a slider.

    If you’re not sure how to add meta data to your posts or want something thats really easy I would recommend this plugin:

    https://wordpress.org/plugins/advanced-custom-fields/

    Make sure you create a number or text field type and add years to all your cars, then you can begin searching! ๐Ÿ™‚

    Ross Moderator in reply to:
    ajax loading not working
    #1209

    Hey 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

    Ross Moderator in reply to:
    Cannot get AJAX results to show on same page as form
    #1206

    Hey Ken, Search & Filter creates this automatically for your results pages every form you create has its own unique id, and when that is in the URL, a search is performed..

    So you did not create this, it is auto generated (you can see it in the slug section) – this page is always your results page for this form, and it uses all the settings defined in your search form, such as loading a custom template – search-landing.php

    You’ll see, if you submit the form without AJAX, the URL will update and you can find an sfid=***

    What you need to do is make sure this results page (http://klc.wpengine.com/?sfid=Wt) uses the same page template as this one – http://klc.wpengine.com/reference/filter/ – so when you access both the URLs, you will have the same layout.

    But currently they look completely different, so update the custom template filename in S&F settings to match.

    Make senses?

    Ross Moderator in reply to:
    ajax loading not working
    #1204

    Yeah 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(); ?>

    ๐Ÿ™‚

    Ross Moderator in reply to:
    ajax loading not working
    #1201

    To me this looks correct…? As long as the code you posted is inside “searchform.php” then it seems right…

    What URL do you get when you submit the form?

    Ross Moderator in reply to:
    Cannot get AJAX results to show on same page as form
    #1200

    Hey Ken

    I think the problem is, if you want to use AJAX, then the results page must match the layout of the page you sent me – so they must use the same page template…

    So, because you want to use AJAX

    Your results page (http://klc.wpengine.com/?sfid=Wt) and your main search page (http://klc.wpengine.com/reference/filter/) must use the same page template (they must look the same with the same/similar DOM strucutre) – right now they look completely different.

    Ross Moderator in reply to:
    ajax loading not working
    #1193

    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();

    ๐Ÿ™‚

    Ross Moderator in reply to:
    ajax loading not working
    #1189

    Ok I’m in ๐Ÿ˜‰ Will see if I can do this modification, but if not you will have to try to follow the tutorial! BRB

Viewing 10 posts - 10,251 through 10,260 (of 10,351 total)