Title: Edit the post layout
Last modified: October 2, 2024

---

# Edit the post layout

 *  Resolved [Te Calleja](https://wordpress.org/support/users/tecreative/)
 * (@tecreative)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/edit-the-post-layout/)
 * Based on this [https://github.com/YMC-22/smart-filter?tab=readme-ov-file#layouts](https://github.com/YMC-22/smart-filter?tab=readme-ov-file#layouts)
 * I put this text in my functions.php file:
 *     ```wp-block-code
       function my_custom_post_layout($layout, $post_id, $filter_id, $increment_post, $arrOptions) {     $layout  = '<h2>'.get_the_title($post_id).'</h2>';   $layout .= '<p>Custom text here</p>';   $layout .= '<a href="'.get_the_permalink($post_id).'">Read More</a>';    return $layout;}add_filter('ymc_post_custom_layout_4628_2', 'my_custom_post_layout', 10, 5);
       ```
   
 * But the default layout is still showing. I am sure that my FilterID and LayoutID
   are correct. Am I missing anything?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [YMC](https://wordpress.org/support/users/wssoffice21/)
 * (@wssoffice21)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/edit-the-post-layout/#post-18049299)
 * Hi!
 * Thanks for using our plugin. First, you should select a custom template (Custom
   Layout) in the plugin settings Layouts – Post Layout – [https://prnt.sc/lq_pt29wLsg0](https://prnt.sc/lq_pt29wLsg0),
   and then correctly specify the filter ID and its counter on the page. Please 
   provide a link to the page of your site where the filter is located and we will
   check your filter ID.
 *  Thread Starter [Te Calleja](https://wordpress.org/support/users/tecreative/)
 * (@tecreative)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/edit-the-post-layout/#post-18049536)
 * Ohhh! Got it, it works. Thank you!!!
 *  Plugin Author [YMC](https://wordpress.org/support/users/wssoffice21/)
 * (@wssoffice21)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/edit-the-post-layout/#post-18049575)
 * Good Luck!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Edit the post layout’ is closed to new replies.

 * ![](https://ps.w.org/ymc-smart-filter/assets/icon-128x128.png?rev=3354891)
 * [YMC Filter](https://wordpress.org/plugins/ymc-smart-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ymc-smart-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ymc-smart-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/ymc-smart-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ymc-smart-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ymc-smart-filter/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [YMC](https://wordpress.org/support/users/wssoffice21/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/edit-the-post-layout/#post-18049575)
 * Status: resolved