jeeltcraft
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Job Manager] pass argument to job listing queryHi Jon, the $meta value is an array of values with a single key, so the true to unique is correct (tested on another wp_query), thanks anyways for your interest, and let me know if you wanna get deep into it by applying for a freelance work.
Regards,
LauraCForum: Plugins
In reply to: [WP Job Manager] pass argument to job listing queryOk, just found the error in variables, but still cannot get this to work properly:
function filter_hide( $query_args ) { $meta = get_user_meta(get_current_user_id(), 'hide', true); if(!is_admin() ) { $query_args = array( 'author__not_in' => $meta, ); } return $query_args; } add_action( 'pre_get_posts', 'filter_hide', 10, 2 ); add_action('job_manager_get_listings', 'filter_hide');
Forum: Plugins
In reply to: [WP Job Manager] pass argument to job listing queryPlease let me know at least the name of the hook to filter listings… I really need that.
Forum: Plugins
In reply to: [WP Job Manager] Job Archives by User IDThis worked on my installation
<? php $author_posts = get_posts(array( 'author'=>'$current_user', 'post_type'=> 'job_listing', 'orderby'=>'date', 'order'=>'desc', 'numberposts'=>10 )); ?>
- This reply was modified 8 years ago by jeeltcraft.
Forum: Plugins
In reply to: [WP Job Manager] Comments on Job pageYou need to add ‘comments’ on the job_listing custom post type registration ‘supports’ array (main php functions in plugin folder).
All your past post will be comment closed, this will change the future post configuration.Forum: Plugins
In reply to: [Front End PM] append a link so the username prepopulates new message to..Is it possible to set a default message in the same array?
Forum: Plugins
In reply to: [WP Store Locator] Style mapthanks a lot, I’ll have a try with it
Forum: Plugins
In reply to: [WP Store Locator] Map on bootstrap modalOk, sorry for the questions, I may have problems with chrome, the map works perfectly on bootstrap modal ??
Forum: Plugins
In reply to: [WP Store Locator] Results display questionsOk, it worked pasting the usort line before sending $store _results, thanks ??
Forum: Plugins
In reply to: [WP Store Locator] Results display questionsDo I have to replace the 96 line? This is how it looks to me.
wp_send_json( $store_results );
I tried replacing and adding the code line you suggested like this:
wp_send_json( $store_results ); usort( $store_results, 'sortByOrder' ); } die(); } function sortByOrder( $a, $b ) { return $a['id'] - $b['id']; } /**
but it returns no result…