Stewart Watkins

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Search using Catagory & Near #412482

    Stewart Watkins
    Free User
    Post count: 3

    I have now found a usable work around by changing lines 4769 in custom_functions.php so 4761 – 4769 says:

    <input class=”search_text” name=”s”

    value=”<?php if ( isset( $_REQUEST[‘s’] ) && trim( $_REQUEST[‘s’] ) != ” ) {

    echo esc_attr( stripslashes_deep( $_REQUEST[‘s’] ) );

    } else {

    echo Community;

    So when Search For is left blank, it echo’s ‘Community’ as the Search Term rather then $default_search_for_text which returns nothing and ends up in the search returning the error page.

    Obviously every time the plugin updates I’ll have to re-apply the change but it means we can just put a phase in each Location and then echo that phase for ‘Search For’ (and hide it as well) and it pull all the locations by default if nothing is in Near, or the schemes within distance if Near is put in

    in reply to: Search using Catagory & Near #412445

    Stewart Watkins
    Free User
    Post count: 3

    Hi Alex

    The Popular Posts widget doesn’t really do what we want; all of the listings have Addresses inputted already; if you type into the Search “Hemel Hempstead” in the Near Field, but leave the ‘Search For’ blank, it will just load:

    “Ooops…
    No results found for:”

    But if you put # into Search and then put Hemel Hempstead into ‘Near’; it’ll load “Hertfordshire Action on Disability – HAD 9.83 miles” but ignores the rest (most likely because # is not really a search term). Ideally the search should be able to ignore the Search For and just pull everything that is Near the location you enter?

    All of the companies only cover a certain area so the location set for the company is based on the area they cover (the final profiles will have a list of villages/towns covered as a Field which may be a workaround if the ‘Near’ can’t work on its own)

    in reply to: Search using Catagory & Near #412366

    Stewart Watkins
    Free User
    Post count: 3
    This reply has been marked as private.
Viewing 3 posts - 1 through 3 (of 3 total)