I am using Gtranslate with Mylisting theme, great theme, which however has a huge problem, it is not multilanguage compatible by default. After contacting Mylisting the response I got was “we are working on multilingual compatibility” (they said the same in 2018)
After trying all the translation plugins out there (paying for pro versions) I came to the choice of Gtranslate, again paid version, which allows me to refine all the translations in detail.
Obviously the plugin needs some adjustments that fortunately the support team was able to provide, so at the moment I can only recommend it!
]]>a screenshoot here:
https://pasteboard.co/191bfwz24inA.png
Thanks
]]>https://themeforest.net/item/mylisting-directory-listing-wordpress-theme/20593226
]]>I am using MyListing theme:
https://themeforest.net/item/mylisting-directory-listing-wordpress-theme/20593226
Using RankMath we came up to set custom meta data like Listing type, region and so on. The snipped we placed in the child theme function.php
add_action( 'mylisting/submission/save-listing-data','add_listing_type_names', 99, 2 );
add_action( 'mylisting/admin/save-listing-data','add_listing_type_names', 99, 1 );
function add_listing_type_names( $listing_id, $fields = [] ){
$listing = \MyListing\Src\Listing::force_get( $listing_id );
update_post_meta( $listing->get_id(), '_' . 'listing_type_plural_name', $listing->type->get_plural_name() );
update_post_meta( $listing->get_id(), '_' . 'listing_type_singular_name', $listing->type->get_singular_name() );
}
Now you may use these variables for singular and plural
%customfield(_listing_type_singular_name)% //singluar
%customfield(_listing_type_plural_name)%. //plural
So we can set these custom meta tags in the RankMath settings:
https://ibb.co/TbRTT7G
___
The problem is that after importing a listing using your plugin and your addon for RankMath it didn’t add the custom meta tag. It’s just empty on the RankMath preview and also in the source code: https://ibb.co/RYTp478
To fix this I have to resave any new listing which has been added to my website.
But when importing like 4,000 listings I can’t simple resave any of them by hand.
So how to fix this?
]]>I am using following theme: MyListing Theme
But as it seems you doesn’t support their custom meta data tags. With RankMath you can use something like this to show specific meta data on a listing detail page:
%customfield(_case27_listing_type)%
%customterm(job_listing_category)%
%customterm(region)%
%customterm(your-taxonomy-name)%
%customterm(case27_job_listing_tags)%
Don’t know why this isn’t already implemented because you also have Schemas for listings and told us in December 2020 to give some special attention to the MyListing theme…sooo???
]]>
Is there a way to translate these custom functions?
]]>We are testing TranslatePress for a client’s site and we have run into an issue on one page. In english the page and the directory on it shows fine, but when it switches to Spanish, the directory disappears and we get a javascript error message:
ReferenceError: ListingType is not defined
at eval (eval at Ya (vue.min.js?ver=2.6.11:6), <anonymous>:3:1002)
at wn.vt [as _l] (vue.min.js?ver=2.6.11:6)
at wn.eval (eval at Ya (vue.min.js?ver=2.6.11:6), <anonymous>:3:725)
at wn.e._render (vue.min.js?ver=2.6.11:6)
at wn.r (vue.min.js?ver=2.6.11:6)
at fn.get (vue.min.js?ver=2.6.11:6)
at new fn (vue.min.js?ver=2.6.11:6)
at vue.min.js?ver=2.6.11:6
at wn.$mount (vue.min.js?ver=2.6.11:6)
at wn.$mount (vue.min.js?ver=2.6.11:6)
Ue @ vue.min.js?ver=2.6.11:6
We are using the MyListing Theme for the directory and WooCommerce. The error only happens when we turn on automatic translation. Manual translation works fine and the directory displays as normal on a manually translated page.
]]>