Answer the question
In order to leave comments, you need to log in
How to remove brackets in post_count?
There is a widget for tags and archives. In the widget panel, I checked the "Show the number of entries" checkbox. But it shows with brackets
How can I remove them? There is such a solution, but I did not really understand how to apply it.
Thanks in advance
Answer the question
In order to leave comments, you need to log in
You need to remove the categories widget in the widgets and instead put the HTML content or text widget in its place (sorry, I don’t remember the exact name of it). Go from Design to Text tab and paste this code:
<?php
$variable = wp_list_categories('echo=0&show_count=1&title_li=<h3>Рубрики</h3>');
$variable = str_replace(array('(',')'), '', $variable);
echo $variable;
?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question