Results 1 to 2 of 2

Thread: How do you put a custom field anywhere on form-listing.php?

  1. #1
    Thread Starter
    Member sean's Avatar
    Join Date
    May 2011
    Location
    Baguio, Philippines / Guam, USA
    Posts
    57
    Thanks
    10
    Thanked 4 Times in 3 Posts

    How do you put a custom field anywhere on form-listing.php?

    <div class="form-field"><label>
    <?php _e( 'YouTube (link)', APP_TD ); ?>
    <input name="app_youtube" type="text" value="<?php echo esc_attr( $listing->app_youtube ); ?>" />
    </label></div>

    In form-listing.php I am trying to set up so users can add or edit content on the form without having the custom fields only popping up with the category selection.

    For example, I would prefer the phone and fax number fields be together. Rather the the fax mixed into the list of custom fields.

    The code above creates the text import box and puts the existing field contents in the text box, but when the form is edited and submitted the content of the field is not replaced by the edited content. If you click edit from the single listing page and go back toe the edit listing page the field content is exactly the same as it was before attempting to edit the field.

  2. #2
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,617
    Thanks
    222
    Thanked 1,873 Times in 1,770 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. Dimitris Add Custom Form Field for another URL
    By shelly in forum Report Vantage Bugs (Legacy)
    Replies: 6
    Last Post: February 28th, 2013, 10:00 AM
  2. Custom Form Field Not Showing When Listing Your Business?
    By simplebutcreative in forum Vantage General Discussion (Legacy)
    Replies: 4
    Last Post: January 26th, 2013, 01:39 PM
  3. Inserting a custom field from a custom form into the listing preview
    By Fanatic in forum ClassiPress General Discussion
    Replies: 4
    Last Post: May 1st, 2011, 07:17 PM
  4. Adding a Custom Field to a Form...
    By demonlee in forum ClassiPress General Discussion
    Replies: 9
    Last Post: March 28th, 2011, 09:46 PM
  5. Validate a custom form field?
    By tyles2 in forum ClassiPress General Discussion
    Replies: 0
    Last Post: July 16th, 2010, 07:14 PM