YMC
Forum Replies Created
-
Forum: Plugins
In reply to: [YMC Filter] Category Not DisplayingHi!
The Post Elements setting in the Appearance section only applies to the Standard post layout. If you have a different post layout or a custom one selected, these settings will not apply.
https://prnt.sc/-T219dhRLjXiForum: Plugins
In reply to: [YMC Filter] Custom Post Layout Hook does not workGood Luck!
Forum: Plugins
In reply to: [YMC Filter] Custom Post Layout Hook does not workHi!
We’d be happy to help you solve your task. You can override the default post card layout with a custom post card layout. To do this, follow these steps:
- In the plugin settings, under Layouts – Post Layout, select Custom Post Layout from the Post Layout drop-down list (see screenshot https://prnt.sc/P4aqCDviVXws).
- Then, in your theme’s functions.php file, write the following code and use the filter (hook)
‘ymc/post/layout/custom_880’, like in your example:add_filter('ymc/post/layout/custom_880', function($output, $post_id, $filter_id, $popup_class, $term_settings) {
$output = 'TEST';
return $output;
}, 10, 5);
Be sure to check your filter ID (e.g. 880)
You can improve your code:add_filter('ymc/post/layout/custom_880', function($output, $post_id, $filter_id) {
ob_start(); ?>
<h2>TEST</h2>
<p>Post content</p>
<?php return ob_get_clean();
}, 10, 3);
By the way, you can also use Structural Builder, this is a powerful tool for creating a post card!
This solution is more convenient if you need to output a lot of HTML code. We hope this helps.
- This reply was modified 2 months, 3 weeks ago by YMC.
Forum: Plugins
In reply to: [YMC Filter] search bar does not workHi!
We recommend using the latest version of the plugin (3.8.1), as the older version is no longer supported. Please update the plugin and reconfigure it. By the way, we still haven’t seen any search results on your page.
- This reply was modified 2 months, 3 weeks ago by YMC.
Forum: Plugins
In reply to: [YMC Filter] Aligning filters on leftHi!
If you need to place the filter in the left sidebar, use the plugin settings (see screenshot). Select Filter Type – Combined filter, then select Filter Position from the drop-down lists (top, left, right), and save the settings. We hope this helps you solve your tasks.Forum: Plugins
In reply to: [YMC Filter] Tags are also displaying categories?Hi!
If you need to customize the post card, use the settings: Layouts – Post Layout – Custom Layout Mode – Structural Builder – Start from Scratch (see screenshot). Here you can control and manage all available post card components. There are also AСF fields that you can add to your post card. This is very convenient!
Forum: Plugins
In reply to: [YMC Filter] Tags are also displaying categories?You’re using the Custom post layout – Structural Builder – which overrides all default post card settings. You should select the Standard post layout if you want to control the display of specific post card components. These options are disabled in Structural Builder mode.
Forum: Plugins
In reply to: [YMC Filter] Tags are also displaying categories?Hi! You should hide the corresponding post card component in the plugin settings (see screenshot) https://prnt.sc/zrEBkhBnih1V
Forum: Plugins
In reply to: [YMC Filter] Update Shortcode Element to pass post IDGood Luck!
Forum: Plugins
In reply to: [YMC Filter] Problem with a few filtersAre you using the Dependent filter type? If so, you need to clearly understand the relationships between different taxonomy terms and adjust the settings accordingly. Here’s documentation on using this filter type:
https://github.com/YMC-22/YMC-Filter/blob/main/DEPENDENT-FILTER-DOC.mdFor example, pay special attention to these filter settings: See screnshots:
https://prnt.sc/BpD38Regmw8u
https://prnt.sc/wuKupTXSoT0K- This reply was modified 3 months ago by YMC.
Forum: Plugins
In reply to: [YMC Filter] Problem with a few filtersHi!
We’re not entirely clear on your problem. Please describe it in more detail. The filter has many different settings, so you need to configure everything correctly. Also, since you’re using three different taxonomies, posts must be attached to these terms to see the filter results. Also, check the selection criteria (OR or AND)—this is very important.
Forum: Plugins
In reply to: [YMC Filter] Update Shortcode Element to pass post IDPlease, update plugin.
Forum: Plugins
In reply to: [YMC Filter] Update Shortcode Element to pass post IDHi!
Thanks for your recommendations. However, we strongly advise against making any changes to the plugin core, as future releases will overwrite all your changes. We will forward your recommendations to the technical development team.
Forum: Plugins
In reply to: [YMC Filter] How to remove “YMC Filter” from top admin bar?These are the default settings of the plugin and you cannot remove the top bar.
Forum: Plugins
In reply to: [YMC Filter] YMC template overrideHi!
The plugin does not provide the ability to override classes, files, or other components. To change the display logic and code execution, use the provided plugin hooks (filters). See the plugin documentation: https://github.com/YMC-22/YMC-Filter?tab=readme-ov-file
The plugin settings include functionality for customizing post cards. See the documentation: https://github.com/YMC-22/YMC-Filter/blob/main/BUILDER-NOTICE.md