Title: jeromeeee's Replies | WordPress.org

---

# jeromeeee

  [  ](https://wordpress.org/support/users/jeromeeee/)

 *   [Profile](https://wordpress.org/support/users/jeromeeee/)
 *   [Topics Started](https://wordpress.org/support/users/jeromeeee/topics/)
 *   [Replies Created](https://wordpress.org/support/users/jeromeeee/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/jeromeeee/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/jeromeeee/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/jeromeeee/engagements/)
 *   [Favorites](https://wordpress.org/support/users/jeromeeee/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/users/jeromeeee/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/jeromeeee/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPGlobus] Gravity Forms Translation](https://wordpress.org/support/topic/gravity-forms-translation/)
 *  Thread Starter [jeromeeee](https://wordpress.org/support/users/jeromeeee/)
 * (@jeromeeee)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/gravity-forms-translation/#post-9218548)
 * Hi Alex,
 * Got it – This makes sense, thanks!
 * Regards,
    Jerome
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPGlobus] Media (Image) Caption not Properly Filtered?](https://wordpress.org/support/topic/media-image-caption-not-properly-filtered/)
 *  Thread Starter [jeromeeee](https://wordpress.org/support/users/jeromeeee/)
 * (@jeromeeee)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/media-image-caption-not-properly-filtered/#post-9211723)
 * Hi Alex,
 * Thanks for your prompt reply.
 * I have added my steps and result images on to: [http://imgur.com/a/Jozlh](http://imgur.com/a/Jozlh)
 * Let me know if there’s something I did wrong – Thanks!
 * Regards,
    Jerome
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type UI] Using (Built-in) Taxonomies from another plugin](https://wordpress.org/support/topic/using-built-in-taxonomies-from-another-plugin/)
 *  Thread Starter [jeromeeee](https://wordpress.org/support/users/jeromeeee/)
 * (@jeromeeee)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/using-built-in-taxonomies-from-another-plugin/#post-8237884)
 * I found the solution, but it appeared that I didn’t fully understand how taxonomy
   works, which made me go around the bush. Sharing the taxonomy would mean creating
   a post count in the taxonomy even though both post types are totally unrelated.
 * The following should only be used if both post types are related and need to 
   share the same taxonomy:
 *     ```
       add_action( 'init', 'custom_modify_taxonomy', 20 );
       function custom_modify_taxonomy() {
           // get the arguments of the already-registered taxonomy
           $property_types_args = get_taxonomy( 'property-types' ); // returns an object
   
           // make changes to the args
           // again, note that it's an object
           $property_types_args->show_admin_column = true;
   
           // re-register the taxonomy
       	register_taxonomy_for_object_type( 'property-types', 'listings' );
           register_taxonomy( 'property-types', 'listings_savedsearch', (array) $property_types_args );
       }
       ```
   
 * Reference: [http://wordpress.stackexchange.com/questions/161788/how-to-modify-a-taxonomy-thats-already-registered](http://wordpress.stackexchange.com/questions/161788/how-to-modify-a-taxonomy-thats-already-registered)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type UI] Using (Built-in) Taxonomies from another plugin](https://wordpress.org/support/topic/using-built-in-taxonomies-from-another-plugin/)
 *  Thread Starter [jeromeeee](https://wordpress.org/support/users/jeromeeee/)
 * (@jeromeeee)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/using-built-in-taxonomies-from-another-plugin/#post-8237274)
 * Thanks for your reply Michael. I really appreciate how plugin writers are prompt
   and dedicated to their product.
 * Basically what’s happening is the the custom post type (by CPT UI) will be riding
   on (or needs to use) a “property-types” taxonomy created by IMPress Listings (
   [https://wordpress.org/plugins/wp-listings/](https://wordpress.org/plugins/wp-listings/)).
   So I have a hierarchical list of taxonomy items (in property-types).
 * Does it make sense to recreate the same taxonomy (with CPT UI) for the custom
   post type?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] CF7 not AJAXified for dynamic elements](https://wordpress.org/support/topic/cf7-not-ajaxified-for-dynamic-elements/)
 *  Thread Starter [jeromeeee](https://wordpress.org/support/users/jeromeeee/)
 * (@jeromeeee)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/cf7-not-ajaxified-for-dynamic-elements/#post-7681146)
 * Apparently, the scripts are not being loaded for dynamic elements. Adding the
   following line of code after the elements have been created works perfectly for
   me. Should anyone else plan to use CF7 in dynamically created elements:
 * > jQuery.get(‘/wp-content/plugins/contact-form-7/includes/js/scripts.js’, function(
   > data) { eval(data); });
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPGlobus] Widget Error?](https://wordpress.org/support/topic/widget-error-25/)
 *  Thread Starter [jeromeeee](https://wordpress.org/support/users/jeromeeee/)
 * (@jeromeeee)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/widget-error-25/#post-7324697)
 * Yes, that’s correct.
 * [https://wordpress.org/support/topic/admin-ajax-problem?replies=7](https://wordpress.org/support/topic/admin-ajax-problem?replies=7)
 * Deactivating WordFence allowed me to update the widgets, then I’d just turn it
   on again.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPGlobus] Widget Error?](https://wordpress.org/support/topic/widget-error-25/)
 *  Thread Starter [jeromeeee](https://wordpress.org/support/users/jeromeeee/)
 * (@jeromeeee)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/widget-error-25/#post-7324677)
 * This is a global issue, nothing to do with WPGlobus – My bad.
 * It seems that the naughty plugin was WordFence.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPGlobus] Decode from JS](https://wordpress.org/support/topic/decode-from-js/)
 *  Thread Starter [jeromeeee](https://wordpress.org/support/users/jeromeeee/)
 * (@jeromeeee)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/decode-from-js/#post-7294116)
 * Turns out that it doesn’t work as I’m reading the information from a file rather
   than a DB. As such, the PHP functions apply_filers did not work after many tests.
 * In the end, I wrote a custom JS function to do text filtering based on the language.
   In case if any one stumbles across the same problem as me:
 * >  function switch_content_language(text){
   >  if (typeof WPGlobus === ‘undefined’){
   > return; }
   >  var lang = WPGlobus.language;
   >  var res = text.split(“{:}”); for (i = 0; i 
   > < res.length; i++) { if (res[i].toLowerCase().indexOf(lang) >= 0) { return 
   > res[i].substring(res[i].indexOf(“}”) + 1); } } }
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPGlobus] Decode from JS](https://wordpress.org/support/topic/decode-from-js/)
 *  Thread Starter [jeromeeee](https://wordpress.org/support/users/jeromeeee/)
 * (@jeromeeee)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/decode-from-js/#post-7294021)
 * Pardon my dumb question, but I am getting the error:
 * VM4335:2 Uncaught ReferenceError: WPGlobusCore is not defined
 * I have moved the wpglobus.min.js file to the header, and it is loaded in the 
   page above my file, but can’t seem to use the code in my JS script. Any suggestions?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPGlobus] Decode from JS](https://wordpress.org/support/topic/decode-from-js/)
 *  Thread Starter [jeromeeee](https://wordpress.org/support/users/jeromeeee/)
 * (@jeromeeee)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/decode-from-js/#post-7293990)
 * Problem is the output is directly from the JS file, not the PHP template file.
   Is there any other workaround?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPGlobus] String Translation](https://wordpress.org/support/topic/string-translation-8/)
 *  Thread Starter [jeromeeee](https://wordpress.org/support/users/jeromeeee/)
 * (@jeromeeee)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/string-translation-8/#post-7229783)
 * I have tried to first method, here’s what I’ve done:
 * 1. Create languages folder /wp-content/themes/mythemename/languages
    2. Put my
   PO/MO files in the folder (zh_CN.mo and zh_CN.po) 3. Added this line of code 
   in my functions.php :
 * > add_action(‘after_setup_theme’, ‘load_languages’);
   >  function load_languages(){
   > load_theme_textdomain(‘mythemedomain’, get_template_directory() . ‘/languages’);}
 * But when I’m on the Chinese version of the site (from WPGlobus), the translations
   do not appear. Any idea?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPGlobus] String Translation](https://wordpress.org/support/topic/string-translation-8/)
 *  Thread Starter [jeromeeee](https://wordpress.org/support/users/jeromeeee/)
 * (@jeromeeee)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/string-translation-8/#post-7229782)
 * Hi Alex,
 * Do I have to do both steps 1 and 2, or are they different methods to approach
   the question?
 * Say for example, I need to localize this code-behind:
 * <span class=”search-label”>’.__(‘Listed In’,’mythemedomain’).'</span>
    <span 
   class=”search-label”>’.__(‘Type’,’mythemedomain’).'</span> <span class=”search-
   label”>’.__(‘Number of Rooms’,’mythemedomain’).'</span>
 * How can I use the apply_filters method to this?
 * Thanks once again, so much, for your help.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPGlobus] String Translation](https://wordpress.org/support/topic/string-translation-8/)
 *  Thread Starter [jeromeeee](https://wordpress.org/support/users/jeromeeee/)
 * (@jeromeeee)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/string-translation-8/#post-7229780)
 * Just to add on, the code is placed on code-behind within the theme functions.
   php, and there is no front-end for it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPGlobus] String Translation](https://wordpress.org/support/topic/string-translation-8/)
 *  Thread Starter [jeromeeee](https://wordpress.org/support/users/jeromeeee/)
 * (@jeromeeee)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/string-translation-8/#post-7229779)
 * Hi Alex,
 * Thanks for your reply.
 * I have set up parts of the theme to enable localization, for example:
 * __(‘Max. Price’,’mythemedomain’)
 * My question is, is there any where or any way that I can set the localization
   of the term ‘Max. Price’ to the different languages available on the site? Can
   WPGlobus handle this, or do I have to do the edits in the PO/MO/POT file?
 * Thanks again for your assistance!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Network Latest Posts] Pagination on multi sites](https://wordpress.org/support/topic/pagination-on-multi-sites/)
 *  Thread Starter [jeromeeee](https://wordpress.org/support/users/jeromeeee/)
 * (@jeromeeee)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/pagination-on-multi-sites/#post-4456088)
 * Was a little tricky, but after much trial and error-ing, it works with this:
 * [nlposts title=”Daily News” number_posts=100 title_only=false thumbnail=true 
   thumbnail_url=daily-news-thumb paginate=true posts_per_page=10 excerpt_length
   =35 auto_excerpt=true sort_by_date=true sorting_order=newer full_meta=true thumbnail_wh
   =300×225 blog_id=2]
 * Put a max value for number_posts (i.e. number_posts=100) so that it will obtain
   more posts!

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/users/jeromeeee/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/jeromeeee/replies/page/2/?output_format=md)