Results 1 to 3 of 3

Thread: Help needed with single listing page edit

  1. #1
    Thread Starter
    Amateur carlneville's Avatar
    Join Date
    Mar 2013
    Location
    Plymouth, UK
    Posts
    16
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Help needed with single listing page edit

    I am a newbie to php and have been trying to make an edit to the single listing page.

    I would like to display some HTML code when there are no custom fields added and the custom fields are empty. I would like to achieve this by executing the PHP else or elseif statement, I think this is the code to edit.

    Code:
    <div class="listing-fields">
    
    		<?php va_the_files_list(); ?>
    		<?php the_listing_fields(); ?>
    	</div>
    All I want to achieve is to display HTML if the files list if the listing fields are empty.

    example:
    When I use the listing importer and the custom fields are blank, i want to display text and image using HTML, when the listing has been claimed and the owner adds data to the custom fields, the HTML will not show. I assume it is possible to edit the above code on the single-listing.php page with an elseif statement.:confused:

    Please, any help would be appreciated.

  2. #2
    joes's Avatar
    Join Date
    Nov 2012
    Location
    Australia
    Posts
    877
    Thanks
    12
    Thanked 358 Times in 261 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    Amateur carlneville's Avatar
    Join Date
    Mar 2013
    Location
    Plymouth, UK
    Posts
    16
    Thanks
    2
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] listing page mod help needed :)
    By knova15 in forum ClassiPress General Discussion
    Replies: 1
    Last Post: August 1st, 2013, 03:28 AM
  2. [SOLVED] How can I change Poster Tap in the Listing is under the block. Single Page Ad Listing
    By cgsolitario in forum Report ClassiPress Bugs
    Replies: 7
    Last Post: February 10th, 2013, 01:18 PM
  3. Single Listing Page Views
    By tbase in forum Vantage General Discussion (Legacy)
    Replies: 1
    Last Post: November 15th, 2012, 06:43 AM
  4. [SOLVED] Can't edit any listings from single-listing pages
    By radioz in forum Report Vantage Bugs (Legacy)
    Replies: 4
    Last Post: September 21st, 2012, 10:34 AM
  5. Ad Listing Page Help Needed
    By webcrafty in forum ClassiPress General Discussion
    Replies: 1
    Last Post: December 16th, 2011, 09:14 PM