Forums

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

  1. M One
    Member
    Posted 6 months 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 6 months 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

Reply

You must log in to post.

About this Plugin

About this Topic