ossedk
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Job Manager] Job tags attached to certain categoriesTags are predefined , so If I can just receive them via php then it’s fine as well, can I call an array with the job tags that is predefined from backend ?
Forum: Plugins
In reply to: [WP Job Manager] Job tags attached to certain categoriesI can with ease track a change on the category….
But we are talking about the job tags.
How do I receive a list of the current job tags ?
Forum: Plugins
In reply to: [WP Job Manager] Disable Expired Listings from showing in DashboardMany many thanks Mike!
Works like a charm!
Again thank you!
Forum: Plugins
In reply to: [WP Job Manager] Disable Expired Listings from showing in DashboardI mean the dashboard on the frontend – so the person makeing the job listing.
Forum: Plugins
In reply to: [Subscribe2 - Form, Email Subscribers & Newsletters] Multi storeDosen’t matter, build work-around for it – so it works fine now – thanks.
Forum: Plugins
In reply to: [Subscribe2 - Form, Email Subscribers & Newsletters] Multi storeBasicaly the optional solution would just be to only show the ajax pop up box and then it stays on the same page.
Forum: Plugins
In reply to: [WP Job Manager] Getting Category name from $_POST search_categoreis valueNevermind found it 🙂
Forum: Plugins
In reply to: [WP Job Manager] Getting Category name from $_POST search_categoreis valuecool, only question is what is the listing category called ?
get_term_by(‘id’, $categoryId, ‘search_categories’)
it’s not search_categories and where do I find these next time?
Forum: Plugins
In reply to: [WP Job Manager] Adding another ORDERBY for the shortcodeYes of course 🙂
But the new function was inside the function get_job_listings_query_args
Which made the error of already declared so each time get_job_listings_query_args was run it was redeclaring the new function args_function_rating_dsaw – so I moved it outside of get_job_listings_query_args but still in functions.php of course:)
Works perfectly
Forum: Plugins
In reply to: [WP Job Manager] Adding another ORDERBY for the shortcodeGot it solved by moving the function outside and declaring it to:
function args_function_rating_dsaw($args) { $args['orderby'] = 'meta_value_num'; $args['order'] = 'DESC'; $args['meta_key'] = 'rating'; return $args; }Many thanks for the help!
Forum: Plugins
In reply to: [WP Job Manager] Adding another ORDERBY for the shortcodeit’s somehow because it’s implemented within function get_job_listings( and each time this function is called it gets redeclared or that’s at least my assumption.
Forum: Plugins
In reply to: [WP Job Manager] Adding another ORDERBY for the shortcodeSo to be clear it states it’s alerady declared in the line right under add_filter
Forum: Plugins
In reply to: [WP Job Manager] Adding another ORDERBY for the shortcodeI still get the same error after edit the function name
add_filter('get_job_listings_query_args', 'args_function_rating_dsaw'); function args_function_rating_dsaw( $args ) { $args['orderby'] = 'rating'; return $args; }The issue is that the error is stated for the line of the function name.
Forum: Plugins
In reply to: [WP Job Manager] Adding another ORDERBY for the shortcodeReally appreciate your help,
Made as simple as possible
$query_args = apply_filters( 'get_job_listings_query_args', $query_args, $args ); add_filter( 'get_job_listings_query_args', 'custom_get_job_listings_query_args' ); function custom_get_job_listings_query_args( $args ) { $args['orderby'] = 'rating'; return $args; }But here I get “Cannot redeclare custom_get_job_listings_query_args() (previously declared”
What is the mistake on this?
Forum: Plugins
In reply to: [WP Job Manager] Adding another ORDERBY for the shortcodeThanks for the info.
I have tried to follow it, can you let me know if I’m getting closer :
$query_args = apply_filters( 'get_job_listings_query_args', $query_args, $args ); function addRating($query_args){ $args2 = array( 'orderby' => 'meta_value_num', 'order' => 'DESC', 'meta_key' => 'rating', 'meta_query' => array( array( 'key' => 'rating', 'value' => null, 'compare' => '!=' ) ), // End of meta_query 'fields' => 'ID', 'exclude' => array( 1 ), ); $query_args = array_merge('get_job_listings_query_args', 'addRating'); return $query_args; } add_filter( $query_args,'addRating');