Isolate City Field of Address for Archive Item

This topic contains 4 replies, has 2 voices, and was last updated by  identity 4 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #522222

    identity
    Lifetime Member
    Post count: 445

    Is there any additional granularity for the Address field to just display a sub-field, such as the City?

    [gd_post_meta key='address' show='value']

    And I’m not interested in using CSS to “hide” other elements as that may be seen by Google as spammy.

    Cheers

    #522247

    Alex Rollin
    Moderator
    Post count: 27815

    Try using the shortcode builder with GD Post Address, show the advanced settings, and create your own template: https://wpgeodirectory.com/docs-v2/geodirectory/design-elements/#gd_post_address

    #522297

    identity
    Lifetime Member
    Post count: 445

    Thanks, that helped…although tracking down the shortcode builder now is more challenging.

    [gd_post_address show="value" address_template="%%city%%" alignment="right"]
    

    Unless there is a way to specifically pull the builder into Gutenberg, it would be great if a tab could be created within the GD Dashboard with a standalone shortcode builder.

    Cheers

    #522299

    Alex Rollin
    Moderator
    Post count: 27815

    Why not just use a block? There is a GD Post Address block.

    #522301

    identity
    Lifetime Member
    Post count: 445

    Ah, see that now…I had used the post_meta with the address key, which doesn’t include the address_template.

    Thanks

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket