polykrom
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Custom Taxonomy user based creationRe,
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
In reply to: Set Post Taxonomy terms before publishingOk swayam !
Thanks a lot ??
cheers !
Forum: Fixing WordPress
In reply to: Set Post Taxonomy terms before publishingHi 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 https://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
In reply to: Set Post Taxonomy terms before publishingAny advices ?? ?
thx !
Forum: Plugins
In reply to: [SendGrid] Emails sent in plain Text in Place of HTMLHi ,
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
In reply to: Set Post Taxonomy terms before publishing… 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
In reply to: [SendGrid] Emails sent in plain Text in Place of HTMLmmmhhh…
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
In reply to: Adding meta to taxonomy termsWooow ! so great news ??
That’s exactly what i need !
thanks a lot for your reply
Fran?ois
Forum: Fixing WordPress
In reply to: Hook to create a new category for postsYeps,
I’ve resolved it , just a little mistake in my code !
thanks ??
Fran?ois
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
In reply to: Hook to create a new category for postsYes , 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
In reply to: Dynamic url in custom menuAny help for this request ?
thanks again ??
Forum: Plugins
In reply to: [MDTF - Meta Data and Taxonomies Filter] Impossible to activate the plugin ….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
In reply to: [MDTF - Meta Data and Taxonomies Filter] Impossible to activate the plugin ….any answer please ?
thanks a lot
Fran?ois
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