Waiting for author
Overview of the issue
When visiting a booking page that uses Soho Hotel theme, the accommodations and guests are displayed in all languages instead of the selected one.
Workaround
Please be sure to have a full backup of your site before proceeding.
- Open the /wp-content/plugins/sohohotel-booking/includes/functions/backend/general/shb-core-functions.php file.
- Look for line 10.
- Replace the following snippet:
function shb_get_all_ids($post_type) { $ids = get_posts(array( 'fields' => 'ids', 'posts_per_page' => -1, 'post_type' => $post_type, 'orderby' => 'date', 'order' => 'ASC', )); return $ids; }With:
function shb_get_all_ids($post_type) { $ids = get_posts(array( 'fields' => 'ids', 'posts_per_page' => -1, 'post_type' => $post_type, 'orderby' => 'date', 'order' => 'ASC', 'suppress_filters' => false, )); return $ids; }