Title: s.clause's Replies | WordPress.org

---

# s.clause

  [  ](https://wordpress.org/support/users/sclause/)

 *   [Profile](https://wordpress.org/support/users/sclause/)
 *   [Topics Started](https://wordpress.org/support/users/sclause/topics/)
 *   [Replies Created](https://wordpress.org/support/users/sclause/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/sclause/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/sclause/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/sclause/engagements/)
 *   [Favorites](https://wordpress.org/support/users/sclause/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Blocks] plugin shows only 10 attributes](https://wordpress.org/support/topic/plugin-shows-only-10-atributes/)
 *  Thread Starter [s.clause](https://wordpress.org/support/users/sclause/)
 * (@sclause)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/plugin-shows-only-10-atributes/#post-11096141)
 * Thank you for your answer. But i cannot even add product block into post after
   update on 1.3.0. This option has disappeared completely. I have some posts, where
   i already added product block, so i tried to edit it and i see, that after update
   the problem with attributes is still the same. Only 10 attributes is shown. Luckily
   i have older version 1.2.0, which works (i can at least add new product block,
   problem with attributes is same).
    -  This reply was modified 7 years, 4 months ago by [s.clause](https://wordpress.org/support/users/sclause/).
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [php in category description](https://wordpress.org/support/topic/php-in-category-description/)
 *  Thread Starter [s.clause](https://wordpress.org/support/users/sclause/)
 * (@sclause)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/php-in-category-description/#post-4787568)
 * Well, it is complex website and it is hard to explain. I really needed to figure
   this out, because it is also multilanguage website, and it was really dificult
   to put post count on the right place and right category in each language with
   right posts count (WP always counted it wrong). But i also had an idea, that 
   i could make widget for it and thanks to author of plugin “display widgets” i
   was able to set it just like i wanted to. So thank you so much for your help 
   and your time which you spent on my problem.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Dynamic Widgets] Multi Language category](https://wordpress.org/support/topic/multi-language-category/)
 *  Thread Starter [s.clause](https://wordpress.org/support/users/sclause/)
 * (@sclause)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/multi-language-category/#post-4793712)
 * well, problem is, that i need different widget for each category and each language.
   When i use language section, like i choose show widget only in english, i also
   need to specify category, but i see categories only from main language which 
   is different then english and i need categories from english language.
    ** EDIT:
   oooh, i see now…i didn’t understand properly…i have to choose language where 
   i need to show widget and then i have to choose category in main web language
   and DW understands, that i need to show category from language I choosed. Thank
   you so much..it works 🙂
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [php in category description](https://wordpress.org/support/topic/php-in-category-description/)
 *  Thread Starter [s.clause](https://wordpress.org/support/users/sclause/)
 * (@sclause)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/php-in-category-description/#post-4787534)
 * Well, i need to add PHP code for counting posts in one specific category. I have
   a website, where i have multi language plugin (WPML) and i need to show posts
   count in categories and then also in subcategories. So user can choose one category
   and there will be post count for this category right below description and when
   user choose a different category or subcategory, it will be the same (post count
   below category description).
 * For this i use PHP code _get_category_count(‘category-name’). It should work 
   without category name so i could add it into category template, but without category
   name it counts wrong, so thats why i’m searching for solution for adding PHP 
   code into category description. It would let me add post count for specific category
   without searching way, how to show PHP code only in one category.
 * **EDIT:** I tried to apply your code, and it worked, but it shows post count 
   3 times and before description. 2 times before whole website (like error) and
   one time before description where it should be, but i need to add it after description.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [php in category description](https://wordpress.org/support/topic/php-in-category-description/)
 *  Thread Starter [s.clause](https://wordpress.org/support/users/sclause/)
 * (@sclause)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/php-in-category-description/#post-4787500)
 * Thank you for your reply, but i am afraid, that i don’t really know, how to use`
   sanitize_term_field()`. Can you tell me, how should i do it, or how should i 
   use it? Or if you can, direct me somewhere, where can i read about it?

Viewing 5 replies - 1 through 5 (of 5 total)