Results 1 to 3 of 3

Thread: Random Tab Error

  1. #1
    Thread Starter
    Senior Member webcrafty's Avatar
    Join Date
    Aug 2011
    Location
    Ireland
    Posts
    114
    Thanks
    4
    Thanked 2 Times in 2 Posts

    Question Random Tab Error

    Hi All,
    I'm getting this error on the Random Tab on the front page of my site, anyone know what the problem might be ?

    Warning: Missing argument 2 for cp_get_price(), called in /home/sellit/public_html/wp-content/themes/classipress_child/index.php on line 234 and defined in /home/sellit/public_html/wp-content/themes/classipress-314/includes/theme-functions.php on line 677


    Line 677 looks like this -
    Code:
    // get the ad price and position the currency symbol
    if (!function_exists('cp_get_price')) {
        function cp_get_price($postid, $meta_field) {                         (THIS IS LINE 677)
    
            if(get_post_meta($postid, $meta_field, true)) {
                $price_out = get_post_meta($postid, $meta_field, true);
    
                // uncomment the line below to change price format
                //$price_out = number_format($price_out, 2, '.', ',');
    
                $price_out = cp_pos_currency($price_out, 'ad');
    
            } else {
                if( get_option('cp_force_zeroprice') == 'yes' )
                    $price_out = cp_pos_currency(0, 'ad');
                else
                    $price_out = ' ';
            }
    
            echo $price_out;
        }
    }
    Thanks
    Ireland's New Classified Ad's website, The New way to buy and sell in Ireland ,
    http://www.sellitnow.ie

  2. #2
    Thread Starter
    Senior Member webcrafty's Avatar
    Join Date
    Aug 2011
    Location
    Ireland
    Posts
    114
    Thanks
    4
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Ireland's New Classified Ad's website, The New way to buy and sell in Ireland ,
    http://www.sellitnow.ie

  3. #3
    Thread Starter
    Senior Member webcrafty's Avatar
    Join Date
    Aug 2011
    Location
    Ireland
    Posts
    114
    Thanks
    4
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Ireland's New Classified Ad's website, The New way to buy and sell in Ireland ,
    http://www.sellitnow.ie

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. how to remove random post tab
    By whitecouncil in forum Report ClassiPress Bugs
    Replies: 7
    Last Post: January 20th, 2016, 09:02 AM
  2. Random Inquiries
    By aleonlewis in forum Report ClassiPress Bugs
    Replies: 10
    Last Post: November 22nd, 2010, 01:37 AM
  3. [MOD NEEDED] Just Listed, Random
    By an_roks in forum ClassiPress General Discussion
    Replies: 2
    Last Post: October 2nd, 2010, 03:43 PM