Set Google Maps Display to 'ON' for all listings? (Default is off)

  • Robin
    Robin
    Newbie 0 points
    March 12, 2015 at 9:00 pm

    I just installed Responsive Business Directory theme, and ran the upgrade plugin to import about 130 listings from my previous (non-responsive Directory Press 7.1) setup.

    I already had a map_location field, but I noticed that the default is for Google Maps display is set to ‘OFF’ for listings… any way to set it to ‘ON’ quickly for all listings??

    Thanks in advance
    Rob

  • zarko
    zarko
    Senior Member 360 points
    March 12, 2015 at 9:14 pm

    hi Rob,

    Google map enhancement is “showgooglemap” custom field with value “yes” if you need it turned on for all listings. To update it for all listings you could run SQL query like this:

    [code title=””]UPDATE wp_postmeta SET meta_value = ‘yes’ WHERE meta_key = ‘showgooglemap'[/code]

    But be careful when running direct SQL queries, export your database first and than run the query. This is done in phpmyadmin

    Also note that you need to match exact table name of custom fields, it may not be called wp_postmeta if you added different prefix on installation

Viewing 2 posts - 1 through 2 (of 2 total)

New Business Themes for WordPress 2020

Start your new website today!

View Business Themes