Closed jorge-teixeira closed 8 months ago
Hi! Firstly, to create custom layouts (templates), you need to select the Custom templates option in the plugin settings. Then, using hooks - add_filter('ymc_post_custom_layout_545_1', 'my_custom_post_layout', 10, 5); You should describe the structure of the post template in your topic. Examples are in the documentation https://github.com/YMC-22/smart-filter. Itβs not entirely clear how you previously created the template that it was overwritten after the update. There is no need to make changes in the plugin itself (file post-custom-layout.php) as it is constantly updated. All edits should be made only through plugin hooks.
First of all, thank you for the quick response. And yes, I selected both the filter layout: custom filter layout and the select post layout: Custom Layout, just like in the example. Within these files, I made changes, added divs, and classes according to what I wanted to achieve. For instance:'$layout = '<h1 class="custom_div">'.get_the_title($post_id).'</h1>';
and so on. I apologize if Iβm saying anything incorrect; Iβm new to the world of programming and might have misunderstood the documentation. ππ€
Please send us your layout code, as well as a link to the page on your website where your filter is located. we can analyze and provide you with a solution to your task.
Please contact us with any questions.
First of all, thank you very much for the excellent work. The plugin is fantastic ! Iβm trying to implement it on a website, but with the latest update, I lost all the changes made in the file post-custom-layout.php. I might be mistaken, but I thought we could create our own custom templates there. If Iβm wrong, I apologize. I would like to know how we can create new templates, especially for pagination and post filtering. Having that option would be interesting. ππ