我想在\\u content()中放置一些其他PHP标记,是否可能?
<?php the_content(
$custom_attach = get_post_meta( $post->ID, \'wp_custom_attachment\', true );
$custom_attach = get_post_meta( get_the_ID(), \'wp_custom_attachment\', true );
$name = \'button\';
if ( ! empty( $custom_attach ) ) {
echo \'<span class="icon-download">\';
echo \'<a href="\'.$custom_attach[\'url\'].\'">\'.$name.\'</a>\';
echo \'<span>\';
}
); ?>