YMC
Forum Replies Created
-
Forum: Plugins
In reply to: [YMC Filter] Custom Layout Function HelpLet us know if you managed to solve your issue.
Forum: Plugins
In reply to: [YMC Filter] Custom Layout Function Helpadd_filter(‘ymc_post_custom_layout_545_1’, ‘my_custom_post_layout’, 10, 5);
https://drive.google.com/file/d/1q6aOu4H30uuf0hbzGqjvTDGUI0ZbJYPU/view?usp=share_link
Forum: Plugins
In reply to: [YMC Filter] Custom Layout Function HelpHello!
You need to write in the name of the filter
ymc_post_custom_layout_FilterID_LayoutID – where:- FilterID – this is the ID of the post shortcode.
- LayoutID – this is the index number of the filter on the page
So, for example, you have a FilterID – this is 545, you will need to look at the serial number of the filter on the page (ID). If you have only one filter on the page, then the serial number will be 1 and your filter will look like this:
add_filter(‘ymc_post_custom_layout_545_1’, ‘my_custom_post_layout’, 10, 5);
Here, for example, see the screenshot where there are three filters on the page and here the serial numbers (LayoutID) and FilterID are different. - https://drive.google.com/file/d/1uU6x-kSeNlTaVXc1o6sQxIIscInCXTPa/view?usp=share_link
I hope we were able to help you.
Forum: Plugins
In reply to: [States Map US] Trying to install short code in popupDone.
Forum: Plugins
In reply to: [YMC Filter] Custom Post CardsHi!
Please use the new entry to filter to avoid errors. Add 5 parameters instead of 3. Ex: add_filter(‘ymc_post_custom_layout_1’, ‘custom_post_layout_1’, 10, 5);
See doc.
- This reply was modified 3 years, 3 months ago by YMC.
Forum: Plugins
In reply to: [YMC Filter] Custom Post CardsHi Antforshaw!
This should be a number that corresponds to the ID of the ID of the container. I’m glad you solved this task. Contact if you have any questions.Forum: Plugins
In reply to: [YMC Filter] Date FilteringHey Anthony! This plugin filters posts based on selected taxonomies and terms only. By date range, this plugin does not work. But you can create a taxonomy and specify the necessary dates for its terms.
Sincerely, YMCForum: Plugins
In reply to: [States Map US] Editor not working in State optionsAlways happy to help!
Forum: Plugins
In reply to: [States Map US] Editor not working in State optionsThe plugin has been updated to version 1.0.2. Please update the plugin. We have made a change to add content to popups. Now you can add media files and links. I hope we were able to solve your tasks.
Please check and let us know if everything works correctly. Thanks.
Forum: Plugins
In reply to: [States Map US] Editor not working in State optionsPlease change your text inside the States Options tab. Here, only text should be hit and no insertion tags. Thanks
https://drive.google.com/file/d/1VE6lYwQGNE1b6okBidlB1ON28bnXRPrK/view?usp=sharing
- This reply was modified 3 years, 3 months ago by YMC.
Forum: Plugins
In reply to: [States Map US] Editor not working in State optionsWe would like to note that initially only text can be added inside the pop-up window. For security reasons, the ability to embed media files and other html text has been disabled. But your proposal will be considered by us in the near future. So far, you can only paste text.
Thanks for your feedback.Forum: Plugins
In reply to: [States Map US] Editor not working in State optionsHello! Are you using Gutenberg to build blocks on the page? Please tell me, you can’t add media files (image) inside the pop-up window? See screenshot.
https://drive.google.com/file/d/1p-cSb7ZgF3WhroQ_mEQ4gLo1JhgGiDhE/view?usp=sharing
https://drive.google.com/file/d/1lKdDqKFIa-Q-D1FX3_qfDTSPJqn9dHzv/view?usp=sharing
- This reply was modified 3 years, 3 months ago by YMC.
Forum: Plugins
In reply to: [States Map US] Trying to install short code in popupHello! Please specify where you want to place your code, in what place?
Your link is unfortunately not working.Forum: Reviews
In reply to: [YMC Filter] It works well and it’s super easy to configureThank you very much Luca.
Forum: Plugins
In reply to: [YMC Filter] One of the great plugin!You can create your own custom card and then add your own html code (see documentation) https://github.com/YMC-22/smart-filter#layouts.
Place this code in function.php
Here is an example code:/** * Creating a custom post template * @param {string} layout - HTML markup * @param {int} post_id - Post ID * @param {int} cpt_id - Custom Post Type ID * @returns {string} HTML markup card post */ function custom_post_layout_1($layout, $post_id, $cpt_id) { $layout .= '<h2>'.get_the_title($post_id).'</h2>'; $layout .= '<p>'.wp_trim_words(get_the_content($post_id), 30).'</p>'; $layout .= '<a href="'.get_the_permalink($post_id).'">Read More</a>; return $layout; } add_filter('ymc_post_custom_layout_ID', 'custom_post_layout_1', 10, 3);Or you can use filter
add_filter('ymc_post_read_more_ID', $ymc_post_read_more, 3, 1);Replace link Read More with link to cart.
Learn more about the WooCommerce API to create an Add to Cart button.I hope this helps you.