标签: wordpress post
此代码:
function post_content($content) { $content = '<div class="custom-content">'.$content.'</div>'; return $content; } add_filter( 'the_content', 'post_content' );
我是否只需要对选定的类别ID应用此代码,该怎么做?