elebail
Forum Replies Created
-
Forum: Plugins
In reply to: [Category Meta plugin] Translation for pt_BRHello,
Version 1.2.8 is done with your translations.
Many thanks for your contribution.
EnjoyRegards,
EricHello,
Many thanks.
I created a new version (1.2.4) with your fix.Regards,
Eric Le BailHello,
I made a new version (1.2.3) of the “category meta” plugin to include you “check-box” type.
Regards,
EricForum: Hacks
In reply to: How to add Meta-Field in Categories ?Hello,
I made a new version (1.2.3) of the “category meta” plugin to include you “check-box” type.
Regards,
EricHello,
I made a new version (1.2.2) with a fix on this point.
Could you try it and tell me if it works ?Regards,
EricHello,
Thanks a lot for the tips.
I made a new version (1.2.2) with a fix on this point.
Could you try it and tell me if it works ?Regards,
EricForum: Plugins
In reply to: [Category Meta plugin] [Plugin: Category Meta plugin] Not working with 3.1RC1Hello,
I made a new version (1.2.2) with a fix on this point.
Could you try it and tell me if it works ?Regards,
EricHello,
Yes the ‘taxonomy’ values ment to be set to ‘category’ in your case.
The best way to solve this is to unset your 3 meta and re-set them with the new interface.
It won’t delete the values you saved into your categories as long has you don’t update the category with non fields displayed.On my side I’ll look how I can fix the problem directly in the code.
Regards,
EricForum: Plugins
In reply to: [Plugin: Category Meta plugin] Does Category Meta extend to other taxonomies?Hello,
In order to display the configured fields, the plugins use the folowing Hooks:
<taxonomyName>_edit_form
<taxonomyName>_add_form_fieldsDoes your taxonomy edit page call those hooks ?
The standard category / tag edit page does, if you have a custom edit page you need to call those hooks.
Regards,
EricHello jeff,
Ok I add your fix into the plugin new version.
Thanks for sending the code.Regards,
EricHello Ray,
1) Yes the “get_terms_meta” function require the Category ID.
2) For the “where” question:
You need to put the code into the “header” section of your template just after the other “meta” section. (I don’t have your theme files so I can’t tell you exactly where).
The best to do, is to make some try, and look at the HTML source code of the rendered page.I would add a little test in case your header is the same for all pages:
// check we are into the category display page and the get_terms_meta function exists if ( is_category() && function_exists('get_terms_meta')) { // Retreive the meta value $my_decription_value = get_terms_meta($category_id, 'my_description'); // write the meta value in the output HTML echo '<meta name="description" content="'.$my_decription_value.'" />'; }
Regards,
EricHello,
Ok, I see what you want to do.
Yes my plugin alow you to do it.
1) use the administration interface to set-up a meta called ‘my_description’ for example.
2) in the category administration page you’ll see the ‘my_description’ field and you can fill it for all your categories.3) Now you need to customise your theme to display the meta.
The theme files are usualy in the folder:
wordpress/wp-content/themes/<your_theme_name>Usualy the template for category pages is in a file called “category.php”
In this file, add the code like (will display the value of your meta):global $wp_query; $cat = $wp_query->get_queried_object(); $category_id = $cat->term_id; if (function_exists('get_terms_meta')) { $my_decription_value = get_terms_meta($category_id, 'my_description'); echo $my_decription_value; }
Of course this is a sample, you can adapt this code to your needs.
Regards,
EricHello,
The location to put the code depends on what you want to do.
Usualy those bit of code are included into your WordPress Theme.I won’t explain how to create a theme here, there are already a lot of articles on that subject.
ex : https://codex.www.ads-software.com/Theme_DevelopmentThe functions are avalaible to all the theme templates so you can use it in every part of your theme (when the plugin is activated of course).
May-be you can tell me what you want to do, I can write an answer more usefull to you.
Regards,
Eric Le BailForum: Plugins
In reply to: [Plugin: Category Meta plugin] Does Category Meta extend to other taxonomies?Hello,
Plugin version 1.2.0 is now creating meta for all taxonomies:
– Category
– Tag
– and all custom taxonomies.Regards,
Eric Le BailForum: Plugins
In reply to: [Plugin: Category Meta plugin] Error when attempting to edit categoiesHello,
Thank you for the fix.
I integrated it into the new version.Regards,
Eric Le Bail