YMC
Forum Replies Created
-
If you have any questions, please contact us. Good luck!
Hello!
To display the number of posts in the filter, you can override the output using this hook, for example:function ymc_posts_selected($layouts, $founded_post) { $query = new WP_Query( [ 'post_type' => 'post', 'posts_per_page' => -1 ] ); $layouts = 'Example text ' . $founded_post .' from ' . $query->found_posts; return $layouts; } add_filter('ymc_posts_selected_72_1', 'ymc_posts_selected', 10, 2);
Inside the hook, you create your own custom WP_Query and get the number of all posts according to the specified parameters and then display them.
Or this hook:
add_action( 'ymc_after_filter_layout_72_1', 'my_after_filter_function' ); function my_after_filter_function () { $query = new WP_Query( [ 'post_type' => 'post', 'posts_per_page' => -1 ] ); echo 'Total posts: ' . $query->found_posts; }
Also, for dynamically changing parameters you can also use a JavaScript hook, for example:
wp.hooks.addAction('ymc_after_loaded_data_72_1', 'smartfilter', function(target, res){ console.log('Complete loaded data ' + target + ' ' + res.found); });
This hook is triggered when the filter receives all posts and inserts them into the grid. In any case, using different hooks you can display and insert data in the right place. We hope this helps you.
Just don’t forget to change the filter ID and its number on the page (ex: 72_1) – change it to yours
For more detailed information please read the filter documentation https://github.com/YMC-22/smart-filter
Update the plugin
Forum: Plugins
In reply to: [Filter & Grids] Taxonomy relation not workingForum: Plugins
In reply to: [Filter & Grids] Taxonomy relation not workingWhen the option – multiple terms is enabled – the meaning of displaying posts remains the same, that is: if, for example, the user selected term 1 and term 2 from category 1 and then made a selection of several terms from category 2, then the filtering results will include all posts that belong to both categories 1 and category 2 at the same time (this is if the AND option is set – by default). If you make the OR option, all posts that belong to at least one of the established categories will be displayed. The OR option is a less stringent condition, but the AND option is a strict condition for displaying posts according to the filtering settings. As for closing a dropdown outside the area, at the moment you will only need to close it by clicking on the cross)
We will try to fix this bug in the future.
If you have any other questions, we will be happy to help you. Good luck!Forum: Plugins
In reply to: [Filter & Grids] Taxonomy relation not workingTo select multiple terms for taxonomies at the same time, you should enable the Set Multiple Taxonomy Filter option
See screenshot https://prnt.sc/D0qyXeU8kYtHThe “AND” and “OR” options indicate the relationship between multiple taxonomies, if you have them. That is, for example, a post must belong to category 1 and category 2 if “AND” is indicated and vice versa, the post must belong to at least one of the listed categories. This is the meaning of this relationship.
I hope this helps you
- This reply was modified 1 year, 5 months ago by YMC.
Forum: Plugins
In reply to: [Filter & Grids] Taxonomy relation not workingHello!
Provide us with a link to the page on the site where our filtering plugin is installed. The relationship between different taxonomies works according to the WP_Query object and its properties.Thanks
Forum: Plugins
In reply to: [Filter & Grids] Clear button returns posts from other categoriesThe bug has been fixed, please check.
Forum: Plugins
In reply to: [Filter & Grids] Clear button returns posts from other categoriesHello!
Thank you for reaching out for support. We will try to look into your issue as soon as possible and get back to you.Forum: Plugins
In reply to: [YMC Crossword] Display solutionIf you have any questions, please contact us.
Good luck!
Forum: Plugins
In reply to: [YMC Crossword] Display solutionHello Benbois!
Thank you for sharing your solution to this tasks with us.
We have updated the plugin version. The button phrases for translations were fixed (ymc-button-reload, ymc-button-reset, ymc-button-start, ymc-button-pause). Please update the plugin to work correctly.
Thank you for using our plugin.Good luck to you!
Forum: Plugins
In reply to: [YMC Crossword] Display solutionHello!
Thank you for using our plugin.
The essence of the game is to solve all the words from a list of questions. Each correct answer is highlighted in green. The player can watch the progress of the game. After all the words have been distributed, a pop-up window with the rating and game time is displayed. This is the meaning of this crossword puzzle)Forum: Plugins
In reply to: [States Map US] Can’t Save Link for Link PageHello!
Thanks for your feedback. Has been corrected. Now everything is working properly.
Thanks for using the plugin!Forum: Plugins
In reply to: [Filter & Grids] Custom sort orderThanks
Forum: Plugins
In reply to: [Filter & Grids] Custom sort orderWe will review your request and respond to you as soon as possible.
Thank you for using our filter!