WordPress.org

Forums

Events Manager
[resolved] supress empty address fields (2 posts)

  1. M One
    Member
    Posted 2 years ago #

    I am wrapping my address in has_location but need to format it one fields per line as follows:

    {has_location}
    <strong>Location</strong><br/>
    #_LOCATIONLINK<br/>
    <p>#_LOCATIONADDRESS<br/>
    #_LOCATIONTOWN<br/>
    #_LOCATIONSTATE<br/>
    #_LOCATIONPOSTCODE
    {/has_location}

    If an address field is empty (STATE for example) the
    tag still renders leaving an ugle white space in the output.

    Is there any way to display address fields conditionally to prevent this?

    Thanks.

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 2 years ago #

    location state conditional placeholder is not available at the moment however you can try to create one -> http://wp-events-plugin.com/tutorials/creating-conditional-placeholders-for-events/ replacing event with location

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic