Listing Page Display Code – custom display codes

  • Gerry
    Gerry
    Newbie 61 points
    July 22, 2013 at 7:07 pm

    This is a great feature but a small bug is present.

    with the code:

    <div class=”block”>
    <div class=”block-title”><h1><span>[TITLE]</span></h1></div>
    [map_location]
    [map-address1]
    [map-address2]
    [map-address3]
    [map-city]
    [map-country]
    [map-lat]
    [map-log]
    [map-state]
    [map-zip]

    <div class=”block-content”>
    [IMAGES]
    [GOOGLEMAP]
    <ul class=”nav nav-tabs” id=”Tabs”>
    <li class=”active”>Description

  • Details
  • Contact
  • Comments
  • <div class=”tab-content”>
    <div class=”tab-pane active” id=”t1″>
    [TOOLBOX]
    <h5>[TITLE]</h5>
    [CONTENT]
    [GOOGLEMAP]
    </div>
    <div class=”tab-pane” id=”t2″>
    [FIELDS hide=”map”]
    </div>
    <div class=”tab-pane” id=”t3″>
    [CONTACT]
    </div>
    <div class=”tab-pane” id=”t4″>
    [COMMENTS]
    </div>
    </div>

    <script type=”text/javascript”>
    jQuery(‘a[data-toggle=”tab”]’).on(‘shown’, function (e) {
    e.target
    e.relatedTarget
    });
    </script></div></div>

    If there is no data in the field then the short code is displayed. Is there a way to fix this so fields with no data do not appear and the short code is not displayed?

  • Mark Fail
    Mark Fail
    Super Guru 13,013 points
    July 23, 2013 at 2:29 am

    ill see what i can do, i did blank out most of the fields but seems there maybe additional ones.

  • Mark Fail
    Mark Fail
    Super Guru 13,013 points
    July 23, 2013 at 2:37 am

    iv stripped the rest out in 3.7

  • Viewing 3 posts - 1 through 3 (of 3 total)

    New Business Themes for WordPress 2020

    Start your new website today!

    View Business Themes