I'm new to this, I've been searching for time and I can not find the answer.
I have a page that shows campaigns according to the selected filters through ajax. Filters like:
Also I have created some custom filters, ex:
The way I show the default campaign page is from a template PHP page by calling the shortcode:
echo do_shortcode ("[job_shortcode job_cat = 'fashion' job_custom_fields_switch = 'yes']");
My question is, in what way can I add a selected filter field (checkbox) within the short code?
All variables already created in the template work, but custom filters do not work.
The URL of the search in the front-end with ajax is:
ajax_filter = true
& edad2 = 18-24
& gender = women
& interests3 = rider
& intereses2 = fitness§or_cat = fashion
& posted = last24
& view_type
& job_page
Where interests2
and interests3
are the custom fields.
The idea is to be able to show the short code like this:
echo do_shortcode ("[job_shortcode job_cat = 'fashion' job_custom_fields_switch = 'yes' INTERESES2 = 'FITNESS' INTERESES3 = 'RIDER']");
Any help will be very welcome,
Greetings to all.