dnextreme88
Forum Replies Created
-
Thanks for the link, @bindlegirl , I had to use up a custom query for this to work and manually placed it on the plugin files.
Forum: Plugins
In reply to: [WP Job Manager] Adding/Configuring pagination on job listing archive pageYour provided solution at https://ww.wp.xz.cn/support/topic/pagination-not-working-in-job-listing-archive/ actually helped out and fixed the pagination. Thanks.
@tripflex that didn’t help. The thread I checked out at https://ww.wp.xz.cn/support/topic/pagination-not-working-in-job-listing-archive/ worked for me.
Forum: Plugins
In reply to: [WP Job Manager] Filter for Job Dashboard pageThanks, I already found it myself. I added filters for categories, post status, filled/unfilled and job types by tinkering the plugin a bit.
- This reply was modified 5 years ago by dnextreme88.
Forum: Plugins
In reply to: [WP Job Manager] Pagination Not Working in Job Listing ArchiveCan you please add this to your documentation? Would not want people asking the same problem when the solution is to simply add a filter on their theme’s functions.php
Forum: Plugins
In reply to: [WP Job Manager] Cannot search for employer nameI found a solution for this, albeit modifying the SQL query when a search is made (after countless hours of searching). They should seriously update this plugin with better customization options and streamlined functions. Even the documentation is poorly written, no step-by-step instructions. For anyone who’s looking at the same solution as I do, use the function below and place this in your theme’s functions.php:
function add_author_to_search($where) { global $wpdb; if( is_search() ) { // Check if a search is made $search = get_query_var('s'); $like = '%' . $wpdb->esc_like( $search ) . '%'; $query = $wpdb->prepare( "SELECT user_id FROM $wpdb->usermeta WHERE ( meta_key='first_name' AND lower(meta_value) LIKE '%%%s%%' ) OR ( meta_key='last_name' AND lower(meta_value) LIKE '%%%s%%' ) OR ( meta_key='_company_name' AND lower(meta_value) LIKE '%%%s%%' )", $search, $search, $search); $authorID = $wpdb->get_var( $query ); if ($authorID) { // If a user_id matches a user $where .= " OR " .$wpdb->posts. ".post_author = {$authorID} AND " .$wpdb->posts. ".post_name LIKE '" .$like. "'"; // Add to query of function: $GLOBALS[$WP_QUERY_VAR]->request } } return $where; } add_filter('posts_where','add_author_to_search');Forum: Plugins
In reply to: [WP Job Manager] Editing Job Submission Form elementsTo answer your question, there was no editing made prior to submitting the link of the screenshot. Support isn’t as helpful as I expected, so once again I had to find out where to edit the file. For anyone who wishes to edit the Sign Out/Sign In button in the
[submit_job_form]shortcode:
1. Go to Plugin Editor in your WP admin panel
2. Select the WP Job Manager plugin.
3. Under templates/account-signin.php, you can add a custom CSS like so. Insert before the line<?php if ( is_user_logged_in() ) : ?>(here’s mine, I’m using the Agency Bell/Construction Light theme):<style> .account-sign-in .button { padding: 4px 16px; /* top and bottom: 4 px; left and right: 16px */ font-size: 18px; } </style>Forum: Plugins
In reply to: [WP Job Manager] Show jobs by author/employersI was able to comment the line
if ( 0 == $wp_query->found_posts ) locate_template( apply_filters( 'wp_job_manager_companies_404', array( '404.php' ) ), true ); else locate_template( apply_filters( 'wp_job_manager_companies_templates', array( 'single-company.php', 'taxonomy-job_listing_category.php' ) ), true );This was buggy, and just retained the code from the else-clause. How do I edit the permalink because I want to change it from company/ to companies/? Using the Construction Light and Agency Bell theme.
- This reply was modified 5 years, 1 month ago by dnextreme88.
Forum: Plugins
In reply to: [WP Job Manager] Show jobs by author/employers@tripflex the first link is outdated and lacks support. I already created a single-company.php file from the child theme’s root directory but it doesn’t even work under normal circumstances (VERY BUGGY). I had to manually edit the plugin myself. But I pity those who doesn’t have prior programming knowledge with such a buggy plugin.
Forum: Plugins
In reply to: [WP Job Manager] Show jobs by author/employersThat’s pretty sad, considering that this WP Job Manager plugin consists of code that enables listings by employers/authors but cannot be activated by any means.
Forum: Plugins
In reply to: [WP Job Manager] Get job category slugNo, I’m adding custom code to the WP Job Manager plugin as it fails to include job categories on the
[job_dashboard]shortcode. I changed the attribute being plucked by thewp_list_pluckfunction from name to slug. For anyone who wishes to do the same thing as I did, here’s the code I have. Place this on wp-job-manager.template.php:function wpjm_job_categories_slug ( $post = null, $separator = ', ' ) { if ( ! get_option( 'job_manager_enable_categories' ) ) { return; } $job_categories = wpjm_get_the_job_categories( $post ); if ( $job_categories ) { $names = wp_list_pluck( $job_categories, 'slug' ); $slugs = esc_html( implode( $separator, $names ) ); } return $slugs; }On class-wp-job-manager-shortcodes.php, search for
$job_dashboard_columnsvariable and appending this key-value in the params (place it anywhere, I placed it before the filled key. This variable will be looped and will append the keys in order, I simply wanted it after the job title but before the Filled column anyway):$job_dashboard_columns = apply_filters('job_manager_job_dashboard_columns', [ 'job_title' => __( 'Job Title', 'wp-job-manager' ), 'category' => __( 'Category', 'wp-job-manager' ), 'filled' => __( 'Filled?', 'wp-job-manager' ), 'date' => __( 'Date Created', 'wp-job-manager' ), 'expires' => __( 'Listing Expiration', 'wp-job-manager' ), ] );On job-dashboard.php, I placed this code before
<?php elseif ('date' === $key ) : ?>to display the categories (I have made a custom code to get the name of each category and insert a link to their respective pages).<?php elseif ('category' === $key ) : ?> <div style="text-align: center;"><?php echo '<a href=" ' .get_home_url(). '/category-' .wpjm_job_categories_slug( $job ).'" >' .wpjm_job_categories_name( $job ).'</a>'?></div>- This reply was modified 5 years, 1 month ago by dnextreme88.
Forum: Plugins
In reply to: [WP Post Rating] Align rating title and starsAdding the float option would be great, allowing flexible customization options for users. Hope you will do that. Thanks, once again.
Forum: Plugins
In reply to: [WP Post Rating] Disable rating for authors commenting on their own postSince there’s no answer, I had to be independent to do it myself, albeit learning CSS and some WP functions. I placed the following code on my theme’s comments.php file:
if (isset($_GET['replytocom']) && $current_user->ID == $post->post_author) { // Post authors can only reply to other user's comments and cannot add their own comment to posts comment_form($comments_args); } if (is_user_logged_in() && $current_user->ID != $post->post_author) { // Hides the comment form from post authors to avoid them from rating their own job listings comment_form($comments_args); }- This reply was modified 5 years, 1 month ago by dnextreme88.
- This reply was modified 5 years, 1 month ago by dnextreme88.
Forum: Plugins
In reply to: [WP Post Rating] Align rating title and starsSince it’s been a week and there’s no answer at all, I decided to remedy the situation myself. In class-wp-post-comment-rating-settings.php, press Ctrl + F and search for
.wppcr_rating:not(:checked) > label {. Simply change the float attribute of this selector to left (if you wanna align this to the left) or keep it at right (if you wanna keep it to the right).I hope there’s an update for this plugin soon that let’s you add an option to make it float to left or right to make it convenient for people to change their settings at will.
Forum: Plugins
In reply to: [WP Job Manager] Editing Job Submission Form elementsThe answer is pretty vague. Is the CSS of the button derived from the theme or can it be manually edited within the Plugin Editor?