我正在使用索引页上的\\u摘录。我还在我的每一篇文章的开头使用dropcap快捷码。在索引页面上,帖子不会显示周围带有dropcap快捷码的信件。如果我的帖子中有“Dog”一词,索引页会显示“og”。在使用\\u摘录时,如何使用短代码?
短代码
function drcap ($atts, $content = null) {
return \'<div class="dropcap">\' . do_shortcode($content) . \'</div>\';
}
add_shortcode(\'dropcap\', \'drcap\');