teracomp
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Job Manager] Changing job_filter_type shortcode destinationnice…can’t believe I had a typo after all that!
here’s the working function:
function pjobs_shortcode_tweaks() { global $job_manager_shortcodes; remove_action( 'job_manager_job_filters_end', array( $job_manager_shortcodes, 'job_filter_job_types' ), 20 ); add_action( 'job_manager_job_filters_start', array( $job_manager_shortcodes, 'job_filter_job_types'), 20 ); } add_action('init', 'pjobs_shortcode_tweaks');
thanks for catching my typo.
Of course this only works if $GLOBALS[‘job_manager_shortcodes’] is defined in your class file. Should I Fork the project from GitHub and submit a PR? (All new territory for me, but I’m game if that’s the right way to proceed).
Forum: Plugins
In reply to: [WP Job Manager] Changing job_filter_type shortcode destinationThe pull-request sounds excellent…I just haven’t done that before. (i came from a visual source safe world…sorry).
Do you want me to fork WP-Job-Manager, make the shortcodes class global on my fork, then submit a pull request?
Is this the concept?
Change last line of class-wp-job-manager-shortcodes.php:
$GLOBALS['job_manager_shortcodes'] = new WP_Job_Manager_Shortcodes();
then, in my theme functions.php:
function pjobs_shortcode_tweaks() { global $job_manager_shortcodes ; remove_action( 'job_manager_filters_end', array( $job_manager_shortcodes, 'job_filter_job_types' ), 20 ); add_action( 'job_manager_filters_start', array( $job_manager_shortcodes, 'job_filter_job_types'), 20 ); } add_action( 'init', 'pjobs_shortcode_tweaks' );
This, however, doesn’t work. Sorry for my ignorance.
Greatly appreciate your patience, advice and direction.
Forum: Plugins
In reply to: [WP Job Manager] Changing job_filter_type shortcode destinationI’m still building the site: PlanterJobs.com, but the use case is basically:
Present a logical flow of filters from the broadest (Job Type) to Category (Job Roles…only four in our case), then keywords and lastly location.
For our purposes, this makes the most sense.Not sure how to solve this elegantly. It’s such a great plugin I really don’t want to modify class files or hack code. I’ve only built a handful of rather simple plugins, so I’m still learning a lot about the inner workings of wp. Greatly appreciate your feedback. Just point me in the right direction.
Forum: Plugins
In reply to: [WP Job Manager] Can't change placeholder for category in Job Submission FormThanks. Finally got Say What to work by adding
…
entity to the Original and Replacement string text.Forum: Plugins
In reply to: [The Events Calendar] Events that span multiple days with differing timesI’ve looked through your forum and other pages, but I don’t see a “grouping” feature. Can you point me in the right direction?
In working with the plugin this morning, I think I can use custom fields if i just incorporate them into loop where you display the date/time of the event. My client basically has about 50 courses per year (i.e., weekly), most are two-day courses that run Friday night and Saturday morning (two different locations). The three-day course typically runs Thursday and Friday night with a Saturday morning. All designed to accommodate work schedules.
Thanks very much!