Support » Plugin: BP Distance Search » display only cities and states

  • Resolved pragmacafe

    (@pragmacafe)


    Hi,
    is it possible to display only cities and states and not the full address? (in members directory and in profil)

    Thank you 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andrea Tarantini

    (@dontdream)

    Hi pragmacafe,

    It’s not simple (for me) to extract city and state from a Google address, but if you can write the necessary code you can use the filter ‘bps_field_before_details’ from BP Profile Search, file bp-profile-search/bps-templates48.php.

    The above only applies to locations displayed by BP Profile Search in the members directory. Locations in user profiles are displayed by BuddyPress and can be filtered using the ‘bp_get_the_profile_field_value’ filter from BuddyPress, file buddypress/bp-xprofile/bp-xprofile-template.php.

    Thread Starter pragmacafe

    (@pragmacafe)

    Hi,
    ok thank you, no problem
    I wll take a look on that, thank you for the info

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘display only cities and states’ is closed to new replies.