Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress 如何在摘录后跳过_内容中的摘录_Wordpress_Wordpress Theming - Fatal编程技术网

Wordpress 如何在摘录后跳过_内容中的摘录

Wordpress 如何在摘录后跳过_内容中的摘录,wordpress,wordpress-theming,Wordpress,Wordpress Theming,如果作者没有填写自定义摘录,我正在试图找到一种方法来跳过摘录中使用的内容 我有一个介绍栏,上面有特色图片、标题、摘录和日期等。紧接着,内容开始了,但这意味着第一段左右的内容被复制了 有没有办法跳过同样用于摘录的内容的第一部分 代码(到目前为止我还没有尝试过任何东西): 您使用的是主题还是网站生成器?请附上您的代码和屏幕截图,以便会员能够更好地提供帮助。@bhanu我正在为此开发自己的主题 <div class="inversed"> <div class

如果作者没有填写自定义摘录,我正在试图找到一种方法来跳过摘录中使用的内容

我有一个介绍栏,上面有特色图片、标题、摘录和日期等。紧接着,内容开始了,但这意味着第一段左右的内容被复制了

有没有办法跳过同样用于摘录的内容的第一部分

代码(到目前为止我还没有尝试过任何东西):




您使用的是主题还是网站生成器?请附上您的代码和屏幕截图,以便会员能够更好地提供帮助。@bhanu我正在为此开发自己的主题
<div class="inversed">
<div class="container pt-3 pb-2">
<div class="meta">
<?php printf( esc_html__( 'Published on: ', 'DOB-2020') ); the_time('F jS, Y');?>
<br><?php the_terms( $post->ID, 'category', 'categories: ', ' / ' ); ?>
</div>
<?php the_title('<h2>', '</h2>');?>
<?php the_excerpt(); ?>
</div>
</div>
<div class="container pt-3 pb-2">
<?php the_content();?>
</div>