欢迎访问 生活随笔!

凯发k8官方网

当前位置: 凯发k8官方网 > 编程语言 > php >内容正文

php

wordpress content.php,2020主题:content.php -凯发k8官方网

发布时间:2024/10/8 php 0 豆豆
凯发k8官方网 收集整理的这篇文章主要介绍了 wordpress content.php,2020主题:content.php 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

entry(计:条目)

entry-header

entry-content

id="post-">

get_template_part( 'template-parts/entry-header' );

if ( ! is_search() ) {

get_template_part( 'template-parts/featured-image' );

}

?>

if ( is_search() || ! is_singular() && 'summary' === get_theme_mod( 'blog_content', 'full' ) ) {

the_excerpt();

} else {

the_content( __( 'continue reading', 'twentytwenty' ) );

}

?>

wp_link_pages(

array(

'before' => '' . __( 'pages:', 'twentytwenty' ) . '',

'after' => '',

'link_before' => '',

'link_after' => '',

)

);

edit_post_link();

// single bottom post meta.

twentytwenty_the_post_meta( get_the_id(), 'single-bottom' );

if ( is_single() ) {

get_template_part( 'template-parts/entry-author-bio' );

}

?>

if ( is_single() ) {

get_template_part( 'template-parts/navigation' );

}

/**

* output comments wrapper if it's a post, or if comments are open,

* or if there's a comment number – and check for password.

* */

if ( ( is_single() || is_page() ) && ( comments_open() || get_comments_number() ) && ! post_password_required() ) {

?>

}

?>

总结

以上是凯发k8官方网为你收集整理的wordpress content.php,2020主题:content.php的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得凯发k8官方网网站内容还不错,欢迎将凯发k8官方网推荐给好友。

网站地图