Results 1 to 4 of 4

Thread: 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

    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.

    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!

  4. #4
    red20me's Avatar
    Join Date
    Jul 2013
    Location
    United Kingdom
    Posts
    473
    Thanks
    1
    Thanked 104 Times in 93 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. How to edit Sidebar in category page (when listing all ads)
    By ramystyle in forum ClassiPress General Discussion
    Replies: 12
    Last Post: August 22nd, 2015, 11:29 AM
  2. Dimitris Create Listing Page = Edit Listing Information?
    By tbase in forum Vantage General Discussion (Legacy)
    Replies: 9
    Last Post: January 1st, 2015, 04:21 AM
  3. Dimitris Create Listing Page = Edit Listing Information?
    By tbase in forum Report Vantage Bugs (Legacy)
    Replies: 6
    Last Post: September 4th, 2013, 04:34 PM
  4. [SOLVED] Edit / Customize Create Listing Page
    By 5starruk in forum Vantage General Discussion (Legacy)
    Replies: 3
    Last Post: November 17th, 2012, 02:40 AM
  5. [SOLVED] Page 'edit listing' & 'Dashboard' cannot be found
    By teniet in forum Report Vantage Bugs (Legacy)
    Replies: 3
    Last Post: June 14th, 2012, 08:45 AM