This thread is resolved. Here is a description of the problem and solution.
Problem:
You are experiencing an issue where the same job appears in the related jobs section when viewed in a translated language on a site using WPML, BuddyBoss, and WP Jobmanager.
Solution:
We recommend updating your BuddyBoss theme to Version 2.8.00. This update should resolve the issue of job duplication in the related jobs section across different language versions.
If this solution does not apply to your case, or if it seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket with us for further assistance. You can do so at our support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Tagged: Compatibility
This topic contains 0 reply, has 1 voice.
Last updated by Osama Mersal 4 months, 1 week ago.
Assisted by: Osama Mersal.
Author | Posts |
---|---|
January 30, 2025 at 7:58 pm #16653344 | |
ericH-23 |
Hi, in the file related-jobs.php is the line: $posts_array = buddyboss_theme()->related_posts_helper()->get_related_posts(); I found in the buddyboss-theme/inc/plugins/related-posts-helper.php I cannot add the file here, so here is the content. Here you could go further ... Best regards <?php /** namespace BuddyBossTheme; if ( ! class_exists( '\BuddyBossTheme\RelatedPostsHelper' ) ) { class RelatedPostsHelper { protected $_is_active = false; /** public function set_active() { public function is_active() { public function crp_create_index() { $wpdb->hide_errors(); $is_mariadb = false; // Account for MariaDB version being prefixed with '5.5.5-' on older PHP 8.0.15 versions. if ( $is_mariadb && version_compare( 10.3, $mysql_server_version, '<=' ) ) { $current_engine = $wpdb->get_row( if ( isset( $current_engine->engine ) && $current_engine->engine !== $table_engine ) { if ( ! $wpdb->get_results( "SHOW INDEX FROM {$wpdb->posts} where Key_name = 'crp_related'" ) ) { $wpdb->show_errors(); public function get_related_posts( $args = array() ) { $fields = ''; $limit_num = buddyboss_theme_get_option( 'blog_related_posts_limit' ); $defaults = array( $args = wp_parse_args( $args, $defaults ); $source_post = ( empty( $args['postid'] ) ) ? $post : get_post( $args['postid'] ); $limit = ! empty( $args['limit'] ) ? $args['limit'] : $limit; $post_types = (array) $source_post->post_type; $match_fields = array( // Due to limit in FTS phrase or proximity search depending on engine like in InnoDB, $time_difference = get_option( 'gmt_offset' ); if ( is_int( $source_post->ID ) ) { $fields = " $wpdb->posts.ID "; $match = $wpdb->prepare( ' AND MATCH (' . $match_fields . ") AGAINST ('%s') ", $stuff ); $now_clause = $wpdb->prepare( " AND $wpdb->posts.post_date < '%s' ", $now ); $where = $match; $where .= " AND $wpdb->posts.post_type IN ('" . join( "', '", $post_types ) . "') "; $limits .= $wpdb->prepare( ' LIMIT %d, %d ', $offset, $limit ); if ( ! empty( $orderby ) ) { $sql = "SELECT DISTINCT $fields FROM $wpdb->posts WHERE 1=1 $where $orderby $limits"; $results = $wpdb->get_results( $sql ); } else { /** $content = $post->post_content; /** if ( 0 === (int) $excerpt_length || 100 < (int) $excerpt_length ) { if ( $excerpt_length > 0 ) { if ( post_password_required( $post ) ) { /** /** $pattern = array(); array_push( $search, 'from', 'where' ); foreach ( (array) $search as $s ) { return $output; } |
January 30, 2025 at 8:34 pm #16653438 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+03:00) |
Hi Eric, Thanks for your update. I'll update you as soon as I get an update from our compatibility team. Best regards, |
February 24, 2025 at 5:27 pm #16742516 | |
ericH-23 |
Hello, May I ask if there is any estimated timeframe for when this issue might be resolved? The related jobs feature is not working at all, and it would be great if this could be made functional at some point. Thank you very much and best regards. |
February 24, 2025 at 5:31 pm #16742549 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+03:00) |
Hi Eric, I'll check with our compatibility team and let you know. Best regards, |
February 24, 2025 at 6:18 pm #16742636 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+03:00) |
Hi Eric, We needed a hook from the author and have just received it, so our dev team will work on a fix for this issue, but I'm afraid I don't have an estimated time. Best regards, |
April 10, 2025 at 7:37 pm #16920372 | |
ericH-23 |
Hi, I just wanted to check if there are any updates? |
April 11, 2025 at 11:52 am #16922520 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+03:00) |
Hi Eric, I checked the Dev ticket, but there is no update there yet. I asked for an update. Best regards, |
April 11, 2025 at 8:43 pm #16924410 | |
Osama Mersal WPML Supporter since 02/2020
Languages: English (English ) Arabic (العربية ) Timezone: Africa/Cairo (GMT+03:00) |
Hi, Please update BuddyBoss theme to hidden link">Version 2.8.00. After that, please check the issue. The issue should be fixed in this update. Best regards, |