Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Further update, my shortcodes have also stopped working. For example:

    [wp_simple_locator_map post='.$postID.'additionalfields="hide"]

    No longer shows my map ?? and

    [wp_simple_locator]

    No longer displays the search form.

    Out of interest Tom, did you do any other updates today?

    Hi Tom,

    As of today I am also having issues. However, I updated to WP 4.9.8 on 3/8/18 and everything has been working fine until today.

    I am also using custom post type and lat/long fields. I am able to update / publish location posts. My issue is I now don’t get any results on my searches (“No results found”).

    Please post back if you come up with anything.

    Thanks,
    Wayne

    Thread Starter wordpresswayne

    (@wordpresswayne)

    Hi all,

    I (think!) I’ve cracked it. The taxonomy <div> element had not been assigned a valid css style in simple-locator/view/simple-locator-form-ajax.php line 35. For example, you could change line 35 to:

    $output .= '<div class="distance wpsl-taxonomy-filter">

    to use the same formatting as the distance field. I’ll leave this open for a while to see if anyone has any better option.

    Thanks

    Hi Paulr101 et. al.,

    I am very new to wordpress so forgive me if this is bad advice, but I think you can do what you want with the following:

    First you need to add a new category (taxonomy) to your locations post type. There are many ways to do this but one simple method is to use an add in called ‘CPT UI’. Click ‘add new taxonomy’ and attach it to post type ‘locations’.

    Second, I think you just need to add the taxonomies option to your shortcode. For example, paste the following into the page where you want your search:

    [wp_simple_locator taxonomies=”category”]

    See https://locatewp.com/ for more info. Note the use of ” (curly) in the examples. I had some trouble with this and had to use ” (straight) instead.

    Hope this helps!

Viewing 4 replies - 1 through 4 (of 4 total)