Title: polykrom's Replies | WordPress.org

---

# polykrom

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Custom Taxonomy user based creation](https://wordpress.org/support/topic/custom-taxonomy-user-based-creation/)
 *  Thread Starter [polykrom](https://wordpress.org/support/users/polykrom/)
 * (@polykrom)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/custom-taxonomy-user-based-creation/#post-6840515)
 * Re,
 * I think i figure out this topic.
 * To create a user based Term in Custom Taxonomy, i’ve created a meta attached 
   to the term (new WP 4.4 feature) ‘author’ which contains the logged in user ID:
 * `add_term_meta($term_id,'author',get_current_user_id());`
 * and then to retrieve the user who has created the term :
 * `$author = get_the_author_meta( 'user_nicename', intval(get_term_meta($term_id,'
   author')) );`
 * I think it’s the best way to do it.
 * cheers !
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Set Post Taxonomy terms before publishing](https://wordpress.org/support/topic/set-post-taxonomy-terms-before-publishing/)
 *  Thread Starter [polykrom](https://wordpress.org/support/users/polykrom/)
 * (@polykrom)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/set-post-taxonomy-terms-before-publishing/#post-6830464)
 * Ok swayam !
 * Thanks a lot 😉
 * cheers !
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Set Post Taxonomy terms before publishing](https://wordpress.org/support/topic/set-post-taxonomy-terms-before-publishing/)
 *  Thread Starter [polykrom](https://wordpress.org/support/users/polykrom/)
 * (@polykrom)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/set-post-taxonomy-terms-before-publishing/#post-6830424)
 * Hi Swayam !
 * thanks a lot for your answer !
 * I’m going to try to be more clear 😉
 * So, first, my request apply to the creation of a custom post type post in front-
   end.
    On my application, i can navigate through the taxonomy hierarchy of this
   custom post type (ie : category) .
 * Imagine I’m located to the the taxonomy child term country->towns … I would be
   at [http://www.mysite/country/towns](http://www.mysite/country/towns) and WP 
   would display all the custom post posts related to this taxonomy terms …
 * I would like to display on this page a form that would create a custom post type
   post and automatically select the right taxonomy terms …
 * Is the best and only solution is to create hidden fields in this form with taxonomy
   terms value in it ?
 * thanks a lot !
 * François
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Set Post Taxonomy terms before publishing](https://wordpress.org/support/topic/set-post-taxonomy-terms-before-publishing/)
 *  Thread Starter [polykrom](https://wordpress.org/support/users/polykrom/)
 * (@polykrom)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/set-post-taxonomy-terms-before-publishing/#post-6830397)
 * Any advices 🙂 ?
 * thx !
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SendGrid] Emails sent in plain Text in Place of HTML](https://wordpress.org/support/topic/emails-sent-in-plain-text-in-place-of-html/)
 *  Thread Starter [polykrom](https://wordpress.org/support/users/polykrom/)
 * (@polykrom)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/emails-sent-in-plain-text-in-place-of-html/#post-6829664)
 * Hi ,
 * Thanks a lot for your answer…
 * Well, i’ve tried the first option you mention with the test from sendGrid Test
   mail page, it seems to work..
 * But what about the second one, the one i’m only interested in …
    I’ve found two
   wp_email() call in my theme … just have add : `add_filter('wp_mail_content_type','
   set_html_content_type');` and `remove_filter('wp_mail_content_type', 'set_html_content_type');`
   before and after wp_mail() call , and it doesn’t work… i always get my emails
   in text-plain format …
 * Also, does i have to add these to all my WP site folder ? there a lot of call
   to wp_mail , from woocommerce to different other plugins and core … doesn’t seem
   to be very stable solution, as everything should stay updatable …
 * But before this… as i said you, this doesn’t work for my first test with these
   code :
 *     ```
       add_filter('wp_mail_content_type', 'set_html_content_type');
       if(wp_mail($emailTo, $subject, $body, $headers))
       {
       echo '<span class="mail-success">' . __("Thank you. Your message has been sent.", 'kleo_framework').' <i class="icon-ok icon-large"></i></span>';
       do_action('kleo_after_contact_form_mail_send', $name, $email, $comment);
       }
       else
       {
       printf($error_tpl, __("Mail couldn't be sent. Please try again!",'kleo_framework') );
       }
       remove_filter('wp_mail_content_type', 'set_html_content_type');
       ```
   
 * So ?
 * Thanks a lot for your help !
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Set Post Taxonomy terms before publishing](https://wordpress.org/support/topic/set-post-taxonomy-terms-before-publishing/)
 *  Thread Starter [polykrom](https://wordpress.org/support/users/polykrom/)
 * (@polykrom)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/set-post-taxonomy-terms-before-publishing/#post-6830126)
 * … Have i to use hidden fields containing the related terms in a add customPost
   form ?
 * Is it the best and only solution ?
 * thanks again 😉
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SendGrid] Emails sent in plain Text in Place of HTML](https://wordpress.org/support/topic/emails-sent-in-plain-text-in-place-of-html/)
 *  Thread Starter [polykrom](https://wordpress.org/support/users/polykrom/)
 * (@polykrom)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/emails-sent-in-plain-text-in-place-of-html/#post-6829446)
 * mmmhhh…
 * I don’t find anything about this subject…
 * I’ve added :
 *     ```
       add_filter( 'wp_mail_content_type', 'set_content_type' );
   
       function set_content_type( $content_type ) {
       return 'text/html';
       }
       ```
   
 * and installed swift mail plugin as requested by sendGrid WP plugin
 * but it doesn’t change anything …
 * Still get all mails in plain/text format
 * Any idea please ?
 * 🙁
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Adding meta to taxonomy terms](https://wordpress.org/support/topic/adding-meta-to-taxonomy-terms/)
 *  Thread Starter [polykrom](https://wordpress.org/support/users/polykrom/)
 * (@polykrom)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/adding-meta-to-taxonomy-terms/#post-6824560)
 * Wooow ! so great news 😉
 * That’s exactly what i need !
 * thanks a lot for your reply
 * François
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Hook to create a new category for posts](https://wordpress.org/support/topic/hook-to-create-a-new-category-for-posts/)
 *  Thread Starter [polykrom](https://wordpress.org/support/users/polykrom/)
 * (@polykrom)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/hook-to-create-a-new-category-for-posts/#post-6818570)
 * Yeps,
 * I’ve resolved it , just a little mistake in my code !
 * thanks 😉
 * François
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Add custom Fields, meta and others to Post Type in relationship to category](https://wordpress.org/support/topic/add-custom-fields-meta-and-others-to-post-type-in-relationship-to-category/)
 *  Thread Starter [polykrom](https://wordpress.org/support/users/polykrom/)
 * (@polykrom)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/add-custom-fields-meta-and-others-to-post-type-in-relationship-to-category/#post-6818569)
 * Hi !
 * Thanks for the link, will check it !
 * For now i’ve defined a custom post type and different taxonomies and terms in
   order to complete what i need… seems also to be a good way !
 * thanks again !
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Hook to create a new category for posts](https://wordpress.org/support/topic/hook-to-create-a-new-category-for-posts/)
 *  Thread Starter [polykrom](https://wordpress.org/support/users/polykrom/)
 * (@polykrom)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/hook-to-create-a-new-category-for-posts/#post-6818482)
 * Yes , it’s
 * but when using :
 * `add_action('create_{category}','myfunction');`
 * …to add some functionalities just after creating a default post category , my
   function isn’t fired up .. is there something wrong with my call ?
 * thanks 😉
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Dynamic url in custom menu](https://wordpress.org/support/topic/dynamic-url-in-custom-menu/)
 *  Thread Starter [polykrom](https://wordpress.org/support/users/polykrom/)
 * (@polykrom)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/dynamic-url-in-custom-menu/#post-6759353)
 * Any help for this request ?
 * thanks again 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MDTF - Meta Data and Taxonomies Filter] Impossible to activate the plugin ….](https://wordpress.org/support/topic/impossible-to-activate-the-plugin/)
 *  Thread Starter [polykrom](https://wordpress.org/support/users/polykrom/)
 * (@polykrom)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/impossible-to-activate-the-plugin/#post-6742618)
 * Hi !
 * Thanks a lot for the answer..
    Will i have to do such manipulation with premium
   plugin ? And what if i update the plugin ?
 * I don’t know why $key_string is object , just the error message.
    I use a woocommerce
   and buddypress integrated theme so it should work :-/
 * thanks again 😉
 * François
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MDTF - Meta Data and Taxonomies Filter] Impossible to activate the plugin ….](https://wordpress.org/support/topic/impossible-to-activate-the-plugin/)
 *  Thread Starter [polykrom](https://wordpress.org/support/users/polykrom/)
 * (@polykrom)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/impossible-to-activate-the-plugin/#post-6742614)
 * any answer please ?
 * thanks a lot
 * François
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[OSM - OpenStreetMap] Impossible to display map with latest version of WP, using the shortcode](https://wordpress.org/support/topic/impossible-to-display-map-with-latest-version-of-wp-using-the-shortcode/)
 *  Thread Starter [polykrom](https://wordpress.org/support/users/polykrom/)
 * (@polykrom)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/impossible-to-display-map-with-latest-version-of-wp-using-the-shortcode/#post-6739461)
 * HI,
 * I come back to you to tell you that i’ve successfully integrate OSM map with :
 * `echo do_shortcode('[osm_map lat="'.$latitude.'" lon="'.$longitude.'" zoom="13"
   width="100%" height="450"]');`
 * but it doesn’t work with V3 version
 * `echo do_shortcode('[osm_map_v3 map_center="'.$latitude.','.$longitude.'" zoom
   ="8"]');`
 * again, lot of depracated notice, but it works for previous version of the plugin…
 * thanks a lot
 * François

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

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