Custom Layout Function Help
-
This is the code I have in my theme’s functions.php
function func_custom_layout($layout, $post_id, $filter_id, $increment_post) { $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_545_ID", "func_custom_layout", 10, 5);
But as you can see at the supplied link, it doesn’t seem to be working. Any help would be great. Thanks
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Custom Layout Function Help’ is closed to new replies.