wesbot
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Job Manager] Re-open the job application div if form validation failsAh brilliant, thanks Mike, that’ll do the trick!
All the best
WesForum: Plugins
In reply to: [Timeline Express] Performance issuesBtw here is the detailed view showing the plugin making two late calls to wp-admin/edit.php and wp-admin/plugins.php
https://gyazo.com/42f42f0645a1d018fe2188aacb7a6b6c
Wes
Forum: Plugins
In reply to: [Timeline Express] Performance issuesHi Evan
Thanks for replying. I understand the lack of shortcode should not be calling any plugin functions so I was bemused at first. But I actually used P3 to determine this issue the first time and here is my original result:
https://gyazo.com/1bb91748cee918604ba825298529e8abReading other support threads as you said, I did a manual test today on the front end only. The results are nowhere near as bad, but it’s still the most intensive. I have to be logged in to see past the maintenance page which still calls the contextual admin menu, so might be the issue. Putting the numbers aside for a moment, there is a very visible difference when I simply disable this plugin.
Auto result: https://gyazo.com/3014c7b8ec31c98df84d1a29c89ffe3a
Manual result (front end only): https://gyazo.com/c175c3b442d3c3e46112c3dbaa120442
Best
WesForum: Plugins
In reply to: [WP Job Manager] Add select box fieldHey dallashuggins.
I used Advanced Custom Fields plugin to create fields easily then passed this to WP job manager template files.
For example, I added a whole bunch of text fields so the job description could have subheadings using this plugin which is very easy to do. Then I assigned them to the job_listing post type so they only appeared when editing a job post type and not a generic post or page.
Then in my WP job manager template files I added:
$fields = get_field_objects(); if( $fields ) { foreach( $fields as $field_name => $field ) { echo '<div>'; echo '<h4>' . $field['label'] . '</h4>'; echo $field['value']; echo '</div>'; } }This will grab the fields, and if content exists for that field, outputs the result.
I hope you find this easier than editing core functions.php files. I sure as hell did.