Custom Layout not working
-
I have been trying to use the add_filter(‘ymc_post_custom_layout_476_1’, ‘my_custom_post_layout’, 10, 5) with absolutely no success. I am not sure if this needs to be wrapped in another function, if I am entering it in the wrong place or if I should be entering other parameters. Please provide some guidance on the use of custom templates with the plugin.
This is the code I am currently using.
function my_custom_post_layout($layout, $post_id, $filter_id, $increment_post, $arrOptions) {
$layout = get_the_title($post_id). ‘gertretretert’;
$layout .= wp_trim_words(get_the_content($post_id), 30);
$layout .= ‘Read More’;
// $layout .= ‘Open Popup‘;
return $layout;
}
add_filter(‘ymc_post_custom_layout_476_1’, ‘my_custom_post_layout’, 10, 5);I entered it into the custom actions field in the advanced section go the plugin settings. Thank you for your assistance on this matter.
The topic ‘Custom Layout not working’ is closed to new replies.