Hi,
I have installed the plugin and also added a custom field to category
the custom field is desc2. Then I copied the code from installation and pasted it into the function.php file, but I am getting this error on page, how can i display that desc2 field data on the category page?
Error : Notice: Undefined variable: category_id in /home/bwornumk/wowdeals360.com/wp-content/themes/kadence/functions.php on line 36
]]>Warning: count(): Parameter must be an array or an object that implements Countable in /home/gaymppqrz6jh/public_html/wp-content/plugins/wp-custom-taxonomy-meta/wp-texonomy-meta.php on line 558
]]>I use this for custom Categories. It’s working very well. However when i put wp short code[ultimate-faqs include_category=’new’] in that field, it shows same text in the front end. usually in the posts it shows the real output. Here only shows the same code. How can I fix this. Plz help I’m using WYSI…editor field.
]]>I am using th plugin to create some necessary fields in the product categories.
When trying to display this information in php, it does not appear.
$cate = get_queried_object();
$cateID = $cate->term_id;
if (function_exists('get_all_wp_terms_meta'))
{
print_r( get_all_wp_terms_meta($cateID) );
}
in page archive-product.php, return Array ( ), the variable $cateID correctly returns the category ID.
]]>if I have Fontawesome in my theme, can this plugin be used to add a field to choose an icon, within the “create taxonomy” screen?
]]>The ‘Installation page shows this php code to put in your theme to display a meta field:
if (function_exists('wp_get_terms_meta'))
{
$MetaValue = wp_get_terms_meta($category_id, $meta_key ,true);
//where $category_id is 'category/term id' and $meta_key is 'meta key'
}
//meta value for meta key $meta_key
echo $metaValue;
There is a MISTAKE. The line ‘echo $metaValue;’ should have an uppecase M. So to fix this it should be:
if (function_exists('wp_get_terms_meta'))
{
$MetaValue = wp_get_terms_meta($category_id, $meta_key ,true);
//where $category_id is 'category/term id' and $meta_key is 'meta key'
}
//meta value for meta key $meta_key
echo $MetaValue;
So if I make a new meta field for a category I call “Address” (and I don’t know what the category ID is) I would display the info using this code:
if (function_exists('wp_get_terms_meta'))
{
//$current_term->term_id will populate with whatever the term ID is for the page bing viewed. Address is the name of the meta field I created.
$MetaValue = wp_get_terms_meta($current_term->term_id, 'Address' ,true);
}
//meta value for meta key $meta_key
echo $MetaValue;
]]>
Hello,
I want to add an additional text field to product category pages with the plugin.
I installed and set the plugin. A text field is now displayed in the backend. But when I enter a text, it is not displayed in the frontend.
What have I done wrong?
I’m using the plugin on a multisite and it only saves values on my local environment, not on production.
]]>I have a problem with the fields created. In production mode it does not save the values while in local everything works correctly. The sites are identical in both settings and plugins.
What can it depend on?
Hello
I am using Category and Taxonomy Meta Fields and ACF together and having a conflict between both plugins when I am trying to upload image
please help how can resolve this.
Uncaught TypeError: Cannot read property ‘call’ of undefined
at window.tb_remove._tb_remove.window.tb_remove (media-views.min.js:1)
at window.send_to_editor (wp-texonomy-meta-scripts.js?v=Sat+Apr+20%2C+2019+7%3A42:43)
I removed the plugin. Standard description category (text-area) is not returned as it was before. How to revert back the description with mce-blocks.
What files does the plugin make changes to ? I need to restore the normal behavior of the category description.
Hello,
I’ve added one Meta Key rank and I need to display according to the ascending rank no. I’ve placed the rank number to all terms but couldn’t display them in ascending order on my front page. Here is my code:
$metarank = wp_get_terms_meta($term->term_id, 'rank', true);
$terms = get_terms( array(
'taxonomy' => $term->taxonomy,
'hide_empty' => false,
'parent' => $term->term_id,
'meta_key' => $metarank,
'orderby' => array(
'meta_value meta_value_num' => $metarank,
'order' => 'asc'
),
) );
]]>
Wordpress version 4.9.8
Woocommerce Version 3.4.5
Category and Taxonomy Meta Fields version 1.0.0
error:
wp-texonomy-meta-scripts.js?ver=4.9.8:38 Uncaught ReferenceError: enable is not defined
This error appears even if no arbitrary fields are specified. Just when the plugin is installed and activated.
]]>Hi,
I have installed the plugin and set up a field on the category page with the meta_key ‘tekstfelt’.
To output the content I use this code in category.php
<?php
if (function_exists('wp_get_terms_meta'))
{
$MetaValue = wp_get_terms_meta(101, tekstfelt ,true);
}
//meta value for meta key $meta_key
echo $MetaValue;
?>
My problem is that the content from the new field is displayed on all the category pages and not just the single category-group I have added content in.
Is there a way to only output the content on the category-page it’s written from?
Basically I only want another textarea on the category page which works exactly the same as the basic textarea which are already there.
]]>Getting warning
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; wpaft_admin has a deprecated constructor in \wp-content\plugins\wp-custom-taxonomy-meta\includes\options.php on line 3
]]>Hi there,
Could you tell me how can i create an image gallery?
The WYSIWYG Editor doesn’t work ok. When i save the content, the HTML tags are converted to special characters.
Thanks.
]]>Hi all,
It’s problbem on php 7.1
Deprecated</b>: Methods with the same name as their class will not be constructors in a future version of PHP; wpaft_admin has a deprecated constructor in <b>/wp-content/plugins/wp-custom-taxonomy-meta/includes/options.php</b> on line <b>3
My solution to the problem :
....
protected static $_instance = null;
public static function instance() {
if ( is_null( self::$_instance ) ) :
self::$_instance = new self();
endif;
return self::$_instance;
}
function __construct() {
// Load language file
$locale = get_locale();
if ( !empty($locale) )
load_textdomain('wp-texonomy-meta', WPTM_ABSPATH.'lang/wp-texonomy-meta-'.$locale.'.mo');
add_action('admin_head', array(&$this, 'wpaft_options_style'));
add_action('admin_head', array(&$this, 'wpaft_options_script'));
add_action('admin_menu', array(&$this, 'wpaft_add_options_panel'));
}
....
wpaft_admin::instance();
]]>
Hi Aftab Husain,
First of all Thanks and Congratulations for this AWESOME plugin.
I just became a fan of your plugin and woks charm.
The only issue i am facing is on the category page. Following is the code I have used but its not outputting the value:
if (function_exists('wp_get_terms_meta'))
{ $MetaValue = wp_get_terms_meta($category_id, icon, true);
echo $MetaValue;}
Also
if (function_exists('wp_get_terms_meta')) { $MetaValue = wp_get_terms_meta($category_id, colour, true); echo $MetaValue; }
I have used it on taxnomy page and works charm. But on category page is not echoing the value. Need help
]]>Plugin block some wp functions!!!
for example
In admin panel categories
in
“Edit Properties Delete”
block Properties
Conflict with pligin Rich Text Tags, Categories, and Taxonomies
block insert images
Please fix it!!!!
Thank you for your Plug-In
I’m using WP 4.9.4
I did configure:
The Editor shows up in category:
I did place the code in my template archive.php
<?php
if (function_exists(‘get_all_wp_terms_meta’))
{
$arrayMetaList = get_all_wp_terms_meta($category_id);
}
print_r($arrayMetaList);
?>
But there is no output with this code
What php code do I need for the output?
]]>I there any way that I can display the category custom fields without mentioning category_id i.e. any code to check the category id dynamically rather mention it..
For example, I have 50 categories in my site and I want every category will have 7-8 custom fields like; suffix/prefix to the page title tag, category image, textarea below the post loop etc.. In that case I wanted to edit only the category.php/archive.php file so that it detects the category dynamically to show the respective fields..
Need the solution urgently.. please help
= = = =
if (function_exists(‘wp_get_terms_meta’))
{
$MetaValue = wp_get_terms_meta($meta_key ,true);
}
//meta value for meta key $meta_key
echo $metaValue;
= = = =
HI,
First of all, it’s very good plugin. Working great.
But i faced one problem,
My custom fields are not showing when i try to add new category.
All custom fields are showing inside edit category.
Is there any way to display custom fields on Add New Category page.
Thanks.
]]>Hi,
Is it possible to add a shortcode in the custom field and have the shortcode work on the front end?
I’m successfully calling the value on a template, but by default it doesn’t seem to interpret the shortcode.
Thanks
Hello
There seems to be a bug with the media selector link: the library is empty.
I tried with wp 4.3, 4.4 & 4.7, the same problem occurs.
I think the link generated is wrong:
media-upload.php?type=image => library empty
media-upload.php?post_mime_type=image => library OK
Useful plugin though,
Thx
Thanks for this plugin.
I have a JS error on the Taxonomy overview pages which is preventing other scripts from plugins to run.
I get the following error.
wp-texonomy-meta-scripts.js?ver=4.6.1:38
Uncaught ReferenceError: enable is not defined(…)
There is a conflict with this plugin: https://www.ads-software.com/plugins/term-management-tools/
It no longer works if your plugin is installed. At least in my case.
What should be the php code in this case?
Screenshot https://joxi.ru/V2VdoEyteOqYrv.jpg
I created a custom taxonomy term meta using the plugin but I don’t know how to output it. Can you help me?
https://www.ads-software.com/plugins/wp-custom-taxonomy-meta/
]]>Bug: wysiwyg field not working. If I add text to wysiwyg field and save category, I see:
https://yadi.sk/i/lVm3yCCgtK5eu
https://www.ads-software.com/plugins/wp-custom-taxonomy-meta/
]]>Please fix error script “enable is not defined” in file wp-texonomy-meta-scripts.js line 37 when I go to link ‘edit-tags.php?taxonomy=category‘
https://www.ads-software.com/plugins/wp-custom-taxonomy-meta/
]]>