S
S
sunny-plum2020-05-03 03:56:41
WordPress
sunny-plum, 2020-05-03 03:56:41

How to edit the output of a post on a blog page? Which file to edit?

Can you please tell me how to edit the output of the entry on the blog page? Which file to edit?
There, by default, there is a title, a picture, a description and read on. And I need to place the title and read further on top of the picture and make the picture a link, as in the VK article
. I found that it is in the archive.php file, but I only find the output of posts there, here is its code:

<?php 
// The template for displaying archive pages, including category, tag, author, and date archives

get_header(); 
?>

<div class="bnt-container">

  <div class="content content-archive">
        <main class="site-main" role="main">

      <?php 
            // Start the Loop
            if ( have_posts() ) { 
      
        ?>
        <header class="archive-header">
        <?php
          the_archive_title( '<h1 class="archive-title">', '</h1>' );
          the_archive_description( '<div class="archive-description">', '</div>' );
          if ( is_author() ) {
            echo wp_kses( '<div class="archive-description">'.get_the_author_meta( 'description' ).'</div>', array( 'div' => array( 'class' => array() ) ) );
          }
        ?>
        </header>
                <?php
      
                while ( have_posts() ) { 
                    the_post(); 
                    // Include the post-format-specific template for the content.
                    get_template_part( 'content' );
                // End the Loop
                } 
        // Navigation
        bento_blog_pagination();
            } else {
                // Display a specialized template if no posts have been found
                get_template_part( 'content', 'none' );	
            }
            ?>
            
        </main>
    </div>
  <?php get_sidebar(); ?>
            
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kashcheev, 2020-05-03
@sunny-plum

get_template_part( 'content' )
The template is called content
https://developer.wordpress.org/reference/function...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question