Edit File by line
/home/barbar84/public_h.../wp-conte.../themes/twentytw.../template...
File: content.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* The default template for displaying content
[2] Fix | Delete
*
[3] Fix | Delete
* Used for both singular and index.
[4] Fix | Delete
*
[5] Fix | Delete
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
[6] Fix | Delete
*
[7] Fix | Delete
* @package WordPress
[8] Fix | Delete
* @subpackage Twenty_Twenty
[9] Fix | Delete
* @since Twenty Twenty 1.0
[10] Fix | Delete
*/
[11] Fix | Delete
[12] Fix | Delete
?>
[13] Fix | Delete
[14] Fix | Delete
<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
[15] Fix | Delete
[16] Fix | Delete
<?php
[17] Fix | Delete
[18] Fix | Delete
get_template_part( 'template-parts/entry-header' );
[19] Fix | Delete
[20] Fix | Delete
if ( ! is_search() ) {
[21] Fix | Delete
get_template_part( 'template-parts/featured-image' );
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
?>
[25] Fix | Delete
[26] Fix | Delete
<div class="post-inner <?php echo is_page_template( 'templates/template-full-width.php' ) ? '' : 'thin'; ?> ">
[27] Fix | Delete
[28] Fix | Delete
<div class="entry-content">
[29] Fix | Delete
[30] Fix | Delete
<?php
[31] Fix | Delete
if ( is_search() || ! is_singular() && 'summary' === get_theme_mod( 'blog_content', 'full' ) ) {
[32] Fix | Delete
the_excerpt();
[33] Fix | Delete
} else {
[34] Fix | Delete
the_content( __( 'Continue reading', 'twentytwenty' ) );
[35] Fix | Delete
}
[36] Fix | Delete
?>
[37] Fix | Delete
[38] Fix | Delete
</div><!-- .entry-content -->
[39] Fix | Delete
[40] Fix | Delete
</div><!-- .post-inner -->
[41] Fix | Delete
[42] Fix | Delete
<div class="section-inner">
[43] Fix | Delete
<?php
[44] Fix | Delete
wp_link_pages(
[45] Fix | Delete
array(
[46] Fix | Delete
'before' => '<nav class="post-nav-links bg-light-background" aria-label="' . esc_attr__( 'Page', 'twentytwenty' ) . '"><span class="label">' . __( 'Pages:', 'twentytwenty' ) . '</span>',
[47] Fix | Delete
'after' => '</nav>',
[48] Fix | Delete
'link_before' => '<span class="page-number">',
[49] Fix | Delete
'link_after' => '</span>',
[50] Fix | Delete
)
[51] Fix | Delete
);
[52] Fix | Delete
[53] Fix | Delete
edit_post_link();
[54] Fix | Delete
[55] Fix | Delete
// Single bottom post meta.
[56] Fix | Delete
twentytwenty_the_post_meta( get_the_ID(), 'single-bottom' );
[57] Fix | Delete
[58] Fix | Delete
if ( post_type_supports( get_post_type( get_the_ID() ), 'author' ) && is_single() ) {
[59] Fix | Delete
[60] Fix | Delete
get_template_part( 'template-parts/entry-author-bio' );
[61] Fix | Delete
[62] Fix | Delete
}
[63] Fix | Delete
?>
[64] Fix | Delete
[65] Fix | Delete
</div><!-- .section-inner -->
[66] Fix | Delete
[67] Fix | Delete
<?php
[68] Fix | Delete
[69] Fix | Delete
if ( is_single() ) {
[70] Fix | Delete
[71] Fix | Delete
get_template_part( 'template-parts/navigation' );
[72] Fix | Delete
[73] Fix | Delete
}
[74] Fix | Delete
[75] Fix | Delete
/**
[76] Fix | Delete
* Output comments wrapper if it's a post, or if comments are open,
[77] Fix | Delete
* or if there's a comment number – and check for password.
[78] Fix | Delete
* */
[79] Fix | Delete
if ( ( is_single() || is_page() ) && ( comments_open() || get_comments_number() ) && ! post_password_required() ) {
[80] Fix | Delete
?>
[81] Fix | Delete
[82] Fix | Delete
<div class="comments-wrapper section-inner">
[83] Fix | Delete
[84] Fix | Delete
<?php comments_template(); ?>
[85] Fix | Delete
[86] Fix | Delete
</div><!-- .comments-wrapper -->
[87] Fix | Delete
[88] Fix | Delete
<?php
[89] Fix | Delete
}
[90] Fix | Delete
?>
[91] Fix | Delete
[92] Fix | Delete
</article><!-- .post -->
[93] Fix | Delete
[94] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function