• Resolved lloydbirch

    (@lloydbirch)


    Hi

    I am using the Listify theme on this website https://www.onthegokids.co.uk/ and have the WP Job Manager plug in, I have used this to create some custom fields for the client but she needs one of them to be output to the search listings instead of the phone number. I found a function on another closed forum that I thought would be useful but cannot seem to make it work in my functions.php, could somebody please help me figure out what I am doing wrong? The custom field I would like to output is called discount:

    function add_discount() {
        global $discount;
    
        echo $discount->_discount;
    }
    add_action( 'listify_content_job_listing_meta', 'add_discount', 25 );

    I’m not great with PHP so please don’t laugh!
    Thanks in advance.

    https://www.ads-software.com/plugins/wp-job-manager/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search results’ is closed to new replies.