• Resolved nghtmre

    (@nghtmre)


    Hello,

    I’m looking to make the Job_ID searchable.

    Do you have an idea or a lead for me?

    I was hoping to use this piece of code provided in the documentation!

    function my_wpjm_meta_key_dm() {
        global $wpdb, $job_manager_keyword;
        $searchable_meta_keys[] = '_my_meta_field';
        return $searchable_meta_keys;
    }
    add_filter('job_listing_searchable_meta_keys', 'my_wpjm_meta_key_dm');

    However not being a meta_field it does not work …

    Thank you in advance for any help you could give me.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support bindlegirl (a11n)

    (@bindlegirl)

    Hi @nghtmre !

    Since Job ID is a post ID, you could look into using get_the_ID() function.

    Hope that helps a bit ??

    Plugin Support Jay

    (@bluejay77)

    Hi there,

    It has been more than one week since we have heard from you, so I’m marking this topic as resolved.

    But if you have any further questions or need some more help, you’re welcome to reply here or open another thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Job_ID’ is closed to new replies.