I want to place some other PHP tag inside the_content() is it possible somehow?
<?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>';
}
); ?>
the_content()
accepts the 'read more link' text and a boolean 'stripteaser' argument... it does not accept any html tags. developer.wordpress.org/reference/functions/the_content - you could however use a filter function to append anything after or before or inside the content developer.wordpress.org/reference/hooks/the_content