• Resolved kylechoi

    (@kylechoi)


    Hi,

    I have made a custom field in post pages. It’s called “address”.
    I want to use this field as the (get weather by..) city.
    The following is echo to get the field.

    <?php echo get_post_meta($post->ID, ‘address’, true); ?>

    Is there a way to use this custom field as the city selected?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Uwe Jacobs

    (@uwejacobs)

    Hi,

    WordPress plugins sanitize all input fields to prevent the execution of any malicious code.

    In one of the next releases, I am going to add a feature that allows using a custom field name for the city input. Then you would enter “@address” in the city name field and the plugin reads the custom field “address” to get to the city name.

    Thread Starter kylechoi

    (@kylechoi)

    wow, it sounds great.
    Do you have the timeline for this update?

    Thanks in advance!!

    Plugin Author Uwe Jacobs

    (@uwejacobs)

    In the next couple of days. I am already testing it in a development environment.

    Plugin Author Uwe Jacobs

    (@uwejacobs)

    The functionality has been added to version 5.6.11. Please update to this version and then use ‘@address’ in the “search by city name” field.

    Thread Starter kylechoi

    (@kylechoi)

    I applied the change and it’s working great!
    Wow!!

    Thanks for the efforts!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘City from custom field?’ is closed to new replies.