Results 1 to 8 of 8

Thread: BUG in 3.3.2 admin - won't display custom fields in add/edit ad

  1. #1
    Thread Starter
    red20me's Avatar
    Join Date
    Jul 2013
    Location
    United Kingdom
    Posts
    473
    Thanks
    1
    Thanked 104 Times in 93 Posts

    BUG in 3.3.2 admin - won't display custom fields in add/edit ad

    Hi,

    I think there is a bug in classipress/includes/admin/admin.php

    In function cp_edit_ad_fields () it checks to see whether the custom fields associated with the post should be displayed in the Ad Meta Fields metabox, and it should do this by checking if the field being processed is attached to the form layout for the category in question.

    This is the check it does:

    // we only want key values that match the field_name in the custom field table .
    if ( in_array($result->field_name, $custom_field_keys) || $result->field_type == 'checkbox' ) :


    Currently, I only see custom fields if they ARE a checkbox....any other custom fields are not being shown in the Ad Meta Fields metabox. The first part of the if statement is never matching anything....so only if it's a checkbox am I getting a custom field displayed.

    I have put some debug statements in this field, and it is looking for field_names such as cp_price in an array that contains only the following:

    0 => _yoast_wpseo_linkdex
    1 => _edit_last
    2 => _edit_lock
    3 => cp_sys_expire_date
    4 => cp_sys_ad_conf_id
    5 => cp_sys_userIP
    6 => cp_daily_count
    7 => cp_total_count
    8 => cp_sys_ad_duration
    9 => cp_sys_total_ad_cost

    So obviously the if condition is not met and the fields aren't displayed....

    Obviously, the array that is being checked is missing a whole heap of items.

    I see from the code that this area has been totally re-written in the new version of classipress....previously there was no /includes/admin/admin.php and the meta box was displayed by a totally different file called /includes/admin/write-panel.php.


    Any hints on where to look to track down why the check fails....? Quick fix urgently needed on this, as it means the back end is not useable for editing or adding listings....


    Thanks,

    red20

  2. #2
    Thread Starter
    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!

  3. The Following User Says Thank You to red20me For This Useful Post:

    seoagent (January 12th, 2014)

  4. #3
    Marketplace Seller mohsinoffline's Avatar
    Join Date
    Dec 2011
    Location
    Algeria
    Posts
    1,575
    Thanks
    44
    Thanked 213 Times in 192 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Do you need content that helps to rank your website better on Google? Check out https://aicontently.com

    Create a website like Retailmenot with FlatterPro Theme , Check out the demo here Retailmenot





  5. #4
    Thread Starter
    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!

  6. The Following User Says Thank You to red20me For This Useful Post:

    seoagent (January 12th, 2014)

  7. #5
    usa4sale's Avatar
    Join Date
    May 2012
    Location
    United States
    Posts
    103
    Thanks
    5
    Thanked 3 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #6
    Amateur nvierow's Avatar
    Join Date
    Jul 2010
    Location
    Spain
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #7
    Amateur nvierow's Avatar
    Join Date
    Jul 2010
    Location
    Spain
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  10. #8
    ambrooo's Avatar
    Join Date
    Aug 2014
    Location
    Romania
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 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. Classipress Custom Fields in Admin Edit Ad
    By red20me in forum ClassiPress General Discussion
    Replies: 0
    Last Post: December 6th, 2013, 04:36 PM
  2. View / Edit & Hide Admin-Only Fields
    By martinkoss in forum Vantage General Discussion (Legacy)
    Replies: 4
    Last Post: July 5th, 2013, 06:58 AM
  3. View / Edit & Hide Admin-Only Fields
    By martinkoss in forum Help Using Vantage (Legacy)
    Replies: 4
    Last Post: July 5th, 2013, 06:58 AM
  4. Custom Fields Display - Display Only Desired Custom Fields
    By danmont in forum ClassiPress General Discussion
    Replies: 5
    Last Post: March 23rd, 2012, 09:01 AM
  5. Custom Fields Display - Display Only Desired Custom Fields
    By danmont in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: March 11th, 2012, 10:54 AM