Hi
Thanks for this plugin it works. But, is there a way to add a TinyMCE editor to the category description? That would be awesome ??
]]>I’m trying to add the code below but it gets stripped out every time I update. Any advice on fixing this?
style="white-space:nowrap"
]]>
Hi @arno_esterhuizen,
Looks like the plugin is still working fine, only supported WP versions needs a bump. I’m happy to support with this and bump it myself if you could add me is contributor for this project?
Thanks in advance,
Timmmy
Hello,
Could you please let me know if this plugin is still being developed? If it isn’t I guess we can just put this code into functions.php instead of using it?
add_action('init','disable_kses_if_allowed');
function disable_kses_if_allowed() {
if (current_user_can('unfiltered_html')) {
foreach (array(
'pre_term_description',
'pre_link_description',
'pre_link_notes',
'pre_user_description'
) as $filter) {
remove_filter($filter, 'wp_filter_kses');
}
}
foreach (array(
'term_description',
'link_description',
'link_notes',
'user_description'
) as $filter) {
remove_filter($filter, 'wp_kses_data');
}
}
If it is, can you please test it against WordPress v6.4.1 and update the Tested up to:
in the readme.txt
?
Currently Wordfence is reporting this plugin as …
The Plugin “Allow HTML in Category Descriptions” appears to be abandoned (updated 15th March 2021, tested to WP 5.8.8).
… and our client is asking for it to be removed accordingly.
Thank you,
Oliver
]]>function custom_archive_description_shortcode($atts)
{
ob_start();
the_archive_description(‘
‘, ”);
$output = ob_get_clean();
$output = wpautop($output);
$output = preg_replace('/[“”]/u', '"', $output);
$output = wptexturize($output);
// Apply wp_kses to the output
$allowed_tags = array(
'div' => array(
'class' => array(),
),
'p' => array(),
'a' => array(
'href' => array(),
'title' => array(),
),
'span' => array(
'class' => array(),
),
'strong' => array(),
'em' => array(),
'ul' => array(),
'ol' => array(),
'li' => array(),
'blockquote' => array(),
);
$output = wp_kses($output, $allowed_tags);
// Output the content
return $output;
}
add_shortcode(‘archive_description’, ‘custom_archive_description_shortcode’, 99);
// allow html in category and taxonomy descriptions
remove_filter( ‘pre_term_description’, ‘wp_filter_kses’ );
remove_filter( ‘pre_link_description’, ‘wp_filter_kses’ );
remove_filter( ‘pre_link_notes’, ‘wp_filter_kses’ );
remove_filter( ‘term_description’, ‘wp_kses_data’ );
Not working please help me.
This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Hi,
Can you please confirm if this plugin is still being developed? Would you be so kind as to update the “Tested up to” if the plugin is compatible with WordPress v6.2?
Many thanks,
Oliver
]]>I am able to enter other HTML code without an issue, but not an <iframe> in the category descriptions. The <iframe> is visible on the WP console “Product categories” listing page where I can add and edit categories, but not on the actual webpages everyone can view. Is this fixable? If so how?
]]>Hello,
I’m trying to add a font color to a link in the category description with the famous :
<a href="https://example.com/" style="color:#FF0000;">Collection Name</a>
But unfortunately, the color is not showing.
You could think about implementing this feature! Highly needed!
Thank you very much,
Again, very nice job for your plugin!
In a previos version of this plugin, I was able to build a simple content filter with Javascript manipulating CSS in the category description to set a visual preselection for visitors on the category page.
Now after the Plugin and WordPress are updated (plugin 1.2.3 & WP 5.8.1), the script and the onclick event in buttons placed in the html description are cleaned of the frontend, in the backend everything is fine, the frontend missing passages are saved and shown after reload.
Is there any change in handling of Javascript and HTML events in the newer versions of this plugin or at WordPress?
The Project is not public yet, so I can’t set any access, but I would deliver the content of my Catergory for testing. The Script works, I have tested it in a hardcoded enviroment with the used HTML blocks and CSS.
]]>Hello,
Are you planning to add an option to add a second text box in the category below the articles? In order to have you text below and below.
Thank you in advance for your answer, if you need more explanation, do not hesitate.
]]>Hi, I have a new site that I added your plugin to, activated it but it did not show the editor in the category description. I have stiped it back to just your plugin and the twenty twenty theme but still the categories description is just a text box, no editor.
Can you help me sort this please? thanks
]]>Hi, not sure if I’m failing to see the obvious
I just tried to install this plugin., but WordPress is still sanitizing the category descriptions. I also tried installing it on a completely different WordPress installation, same effect.
I also tried to manually remove via functions.php (I understand your plugin is basically doing this?) and still doesn’t work:
foreach ( array( 'pre_term_description' ) as $filter ) {
remove_filter( $filter, 'wp_filter_kses' );
}
foreach ( array( 'term_description' ) as $filter ) {
remove_filter( $filter, 'wp_kses_data' );
}
]]>
Hi dear @arnoesterhuizen ,
Two weeks ago and precisely on November 26, 2020 the latest and most updated official stable version of PHP 8.0.x was released while 1 day ago and precisely on November 8, 2020 the latest and most updated official and stable version was released of WordPress 5.6.x which supports the new version of PHP 8.0.x .
I wanted to ask you the following question:
When you make your “Allow HTML in Category Descriptions” plugin compatible with the latest and most updated official stable version of PHP 8.0.x , you have an ETA (Estimated Time of Arrival) ?
Thanks in advance for the support.
]]>I am not techy (I am a retired lawyer). I activated your plugin yesterday and like it very much. But today CPanel is showing excessive usage on CPU and Account executions. My host says it is caused by:
29 /wp-cron.php?doing_wp_cron
27 /wp-admin/admin-ajax.php?action=wp_1_wc_regenerate_images&nonce=b2cfb29af8
1 /wp-content/uploads/woocommerce_uploads
1 /wp-admin/admin-ajax.php?action=wp_1_wc_privacy_cleanup&nonce=84bc474092
1 /wp-admin/admin-ajax.php?action=as_async_request_queue_runner&nonce=e051beb5bc
1 /product-category/other-vehicles-and-machinery/early-buses-and-trams-1863-1919
1 /product-category/early-motor-cars/veteran-motor-cars/
Is it possible any of these – esp. admin-ajax.php – is associated with Allow HTML in Category Descriptions?
Just checking?
Thank you.
After the latest update my website was dead. The whole website became unavailable.
The problem is in the capabilities.php on line 660.
Is it normal to see html code converted into character entity reference code in the source code?
Example in a Category description, I inserted the following HTML code:
Ads have moved to NewDomain.com
Yet when I view the Source code of that Category page, I see the following:
Ads have moved to <a href="https://www.newdomain.com/" title="New Domain" target="_blank" rel="noopener noreferrer">NewDomain.com</a></h2>">NewDomain.com</a>
Hi,
Thanks for your plugin and the share !
It seems on Divi the html code is not working.
Can you help me ?
Thanks a lot.
Phil
]]>Where does the plugin store its data in the database?
]]>I installed and enabled the plugin but I still don’t have HTML in the categories. Cache has been refreshed etc. Any help would be appreciated!
]]>Hi, i downloaded the PlugIn and installed it. I created the Category Description in HTML and copied it intor the Category Description, but it works not. May you help please? Used Theme is IMPREZA
Thanks in Advance and regards,
Markus
Hello,
I instal the plug-in and after that I enter the HTML code to my picture on my test wordpress:
After save it is like this:
What do I do wrong?
Please help, I’m not an experienced programmer
]]>Hi, any experience of Ashe Pro?
Plugin isn’t working for me.
I enter simple HTML in the code view screen of the Category description, but it doesn’t parse.
Thanks, S
Hey!
I realize this has been asked in this support forum before, but none of the other threads seem to really answer my question. I’m trying to add links to tag descriptions, but even with the plugin enabled, they get stripped when I click update. The plugin works like a charm for category descriptions – any way I can tweak it so it functions for tags as well?
Thanks a lot and all the best,
Julian
]]>Is this plugin GDPR compliant? Is it worth adding an official status on this issue to your webpage?
]]>Hello,
When I put anything into the editor for tags, it does not get displayed. See the link to a tag below where I put the word ‘test’ into the content box but it does not appear.
https://karavadra.net/tag/happiness/
Thank you,
Bharat
]]>im in need of a way to add HTML in the Product Short Description of WooCommerce.
seeing that you managed to add HTML for Category Descriptions i was wandering if you could all so add a plugin for HTML in the Product Short Description of WooCommerce.
or let me know how to do it would be nice.
thx for your time
]]>Hello, first of all, thank you for this great plugin. But he breaks the layout in the administration area. Can you fix this by just returning one or two lines of the description, for example. It would be great ?? Thanks.
Screenshot : https://pasteboard.co/ljRdj5fi6.png
]]>Hi,
Plugin installed correctly but still HTML is (partly) removed. I tried to insert some simple things as empty space (tried and <br>) between paragraphs but after saving it’s gone. And not shown on my website. What do I do wrong?
Also it looks like it does not use the themes style sheets – is there a way to activate this as well?
Regards,
Roland
Hello,
I installed the plugin (version 1.2.1.1) in order to add a HTML tag in WooCommerce Category Description. After I activated the plugin, it disappeared from my Installed Plugins list but if I go to www.ads-software.com/Plugin page and try to install it again, it says that it’s already installed.
The HTML tag seem to be working though (here’s the page with an URL in description: https://dream-explorer.com/sanjanje/product-category/eknjige/).
Your support would be greatly appreciated.
Thanks in advance!
Best,
Saso
https://www.ads-software.com/plugins/allow-html-in-category-descriptions/
]]>Hi,
Thanks for the plugin, working great.
One question: how can I let the link insert in the description field open in a new browser tab/window?
https://www.ads-software.com/plugins/allow-html-in-category-descriptions/
]]>