s.clause
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Blocks] plugin shows only 10 attributesThank 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.
Forum: Hacks
In reply to: php in category descriptionWell, 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
In reply to: [Dynamic Widgets] Multi Language categorywell, 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
In reply to: php in category descriptionWell, 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
In reply to: php in category descriptionThank 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?