YMC
Forum Replies Created
-
Forum: Plugins
In reply to: [YMC Filter] Sort orderHi!
You should do the sorting by meta fields. To do this, use the options in the plugin settings by meta key.Forum: Plugins
In reply to: [YMC Filter] Show sticky posts on topGood Luck!
Forum: Plugins
In reply to: [YMC Filter] Show sticky posts on topHi!
If we understand you correctly, you want to pin your featured posts to the top of your posts grid, right? If so, you can add them by enabling the option in the Featured Posts plugin in the General tab.Forum: Plugins
In reply to: [YMC Filter] Hover effects for dropdownHi!
Creating a hover effect on dropdown elements is easy to implement using CSS styles. Apply style rules for the desired dropdown using, for example, this notation:.pillarFilter .filter-layout .sub_item .filter-link:hover {
background-color: green;
color: yellow;
}In any case, all this is implemented using custom styles.
Forum: Plugins
In reply to: [YMC Filter] How to translate two texts inside the search filter?This line is already prepared for translation by any plugin
esc_html__(‘No posts found’,’ymc-smart-filter’);
Use search by lines (WPML or PolyLang) and then by domain name you can translate phrase.
- This reply was modified 1 year, 1 month ago by YMC.
Forum: Plugins
In reply to: [YMC Filter] How to translate two texts inside the search filter?Hi!
You can use this hook (filter)
See doc. about our plugin – https://github.com/YMC-22/smart-filter
- This reply was modified 1 year, 1 month ago by YMC.
Forum: Plugins
In reply to: [YMC Filter] Masonry Max ColumnsHi!
You should use a call to the magicGrid object inside the hook, for example, “ymc_after_loaded_data_545_1“wp.hooks.addAction(‘ymc_after_loaded_data_545_1’, ‘smartfilter’, function(class_name, response) {
const magicGrid = new MagicGrid({
container: ‘.’ + class_name + ‘ .post-entry’,
items: response.post_count,
center: false,
gutter: 20
});
magicGrid.listen();
});The width of each grid element is determined automatically depending on the container width. It is necessary to specify the element width. Then, you can set the parameters of the MagicGrid object you need using filters.
// Maximum number of columns
wp.hooks.addFilter(‘ymc_magicGrid_maxColumns’, ‘smartfilter’, ‘callback’); wp.hooks.addFilter(‘ymc_magicGrid_maxColumns_FilterID’, ‘smartfilter’, ‘callback’); wp.hooks.addFilter(‘ymc_magicGrid_maxColumns_FilterID_LayoutID’, ‘smartfilter’, ‘callback’);
Here is a link to the plugin documentation https://github.com/YMC-22/smart-filter#masonry-layout
Forum: Plugins
In reply to: [YMC Filter] child pluginYou should develop a custom filter using the following plugin hook:
add_filter('ymc_filter_custom_layout_FilterID', 'custom_filter_layout', 10, 6);
add_filter('ymc_filter_custom_layout_FilterID_LayoutID',here is a link to the documentation:
Forum: Plugins
In reply to: [YMC Filter] child pluginHi!
The plugin does not provide the ability to inherit, let alone redefine the core functionality of the plugin. You should make all edits in your theme (child theme) using all possible plugin hooks. It is not recommended to make edits inside the plugin itself, since with each plugin update all files will be overwritten!Forum: Plugins
In reply to: [YMC Filter] Cannot updateGood Luck!
Forum: Plugins
In reply to: [YMC Filter] Cannot updateHi!
Try to download the plugin and upload it via SFTP of your server to the plugins folder.This error may appear from the north side.
Forum: Plugins
In reply to: [YMC Filter] Conditional ACF fields within post layoutRelation
How to select posts from specified taxonomies. Can be:
AND – posts that are both included in the specified taxonomy terms.
OR – posts that belong to any of the specified taxonomy terms.
So this only applies if the post belongs to multiple taxonomies. And if the post belongs to only one taxonomies, this does not affect the selection of posts in any way. Read the documentation on using the global WP_Query objectForum: Plugins
In reply to: [YMC Filter] Conditional ACF fields within post layoutStudy the documentation on ACF fields and the plugin in more detail. Everything should work correctly here if you use the hook (filter)
add_filter('ymc_post_custom_layout_545_1', 'my_custom_post_layout', 10, 5);.See the documentation on the plugin https://github.com/YMC-22/smart-filterForum: Plugins
In reply to: [YMC Filter] Conditional ACF fields within post layoutHi!
You will need to specify the ACF field, pass the post ID there, for example:
$wifi = get_field('wifi', $post_id);Forum: Plugins
In reply to: [YMC Filter] Sort by date automaticallyYes, of course, you can donate.
That would be great.
Send us your email to our address [email protected]
We will provide you with the details