nicoleomy
Forum Replies Created
-
Can you try using another theme? ._.
Going on what Mike said, maybe you can try removing all the other code in your functions.php file leaving only the one you need for the job salary field and see if it works?
This sounds like a bit of a shot in the dark but typically, when troubleshooting ‘mysterious’ WP issues, I read about people deactivating their plugins one by one to see which ones are giving them problems, so maybe you could try that first?
Last resort is to set up a new WP instance and the plugin again on your local or dev/staging environment and try the line of code again in functions.php? And if it works in the new instance then it could be an environment issue or some files were messed up in the current instance.
Sorry not sure if that is going to be of any help but good luck!
Usually if there are errors it should appear on the page itself (so in this case, the admin panel) but since you’re not seeing anything, then we don’t really have a lead on where the issue lies. :(((
Have you tried using Inspect Element to check and see if the markup for the Salary field is there?
Is WP_DEBUG on? Did you get any errors?
Forum: Plugins
In reply to: [WP Job Manager] Salary field not showing up in wp-admin Add Jobs page@phoenixobia: Do you have WP_DEBUG turned on? Are there any errors?
Yeah, I think you should set up a new thread as what Adam said, so that it gets the attention of the other members here too ??
Sorry Mike, didn’t know I needed to add the shortcode in order for it to work. I added into my custom template with the do_shortcode function. It loads the default WP Job Manager AJAX now so no issues with pagination.
Forum: Plugins
In reply to: [WP Job Manager] Custom search form not workingNo, the keywords were not being populated into the search box on my custom jobs page. However, when I echo the do_shortcode for [jobs] in my custom jobs page, and tried the search form again, the keywords are populated into the [jobs] search form and results are being displayed properly. I guess I will need to use the do_shortcode [jobs] in my pages instead of using my custom page – and from there try to figure out how to style the [jobs] template into looking like what I need it to be.
Found a workaround after looking at the content-single-job_listing.php file. I added the $post global variable at the top of my code:
<?php global $post; ?>
and used $post->post_content instead to retrieve the post’s content that was entered in the WYSIWYG editor in Add Jobs page in wp-admin
<?php echo $post->post_content; ?>
Thanks though, Mike!
Forum: Plugins
In reply to: [WP Job Manager] Salary field not showing up in wp-admin Add Jobs pageSolved it!
Forum: Plugins
In reply to: [WP Job Manager] Salary field not showing up in wp-admin Add Jobs pageChanged the type from numeric to text in admin_add_salary_field( $fields ) and it works now:
function admin_add_salary_field( $fields ) { $fields['_job_salary'] = array( 'label' => __( 'Salary (RM)', 'job_manager' ), 'type' => 'text', 'placeholder' => 'e.g. 20000', 'description' => '' ); return $fields; }
Its in my custom single-job_listing.php page template file in the child theme’s folder.