Как отображать сообщения на странице категории? - PullRequest
0 голосов
/ 23 января 2020

Я действительно ладья ie в этом ..

Мне нужно добавить посты на странице моей категории и предположить, что это архив. php файл. Это содержимое этого файла:

<div class="single_post">
    <div class="container">
        <div class="">
            <div class="single_image">
                <img src="<?php echo $url_blog; ?>">
            </div>

            <h1 class="single-post-title"><?php the_title(); ?></h1>
            <div class="single_content">
                <?php
                if ( have_posts() ) : ?>

                    <header class="page-header">
                        <?php
                        the_archive_title( '<h1 class="page-title">', '</h1>' );
                        the_archive_description( '<div class="taxonomy-description">', '</div>' );
                        ?>
                    </header><!-- .page-header -->

                    <?php
                    /* Start the Loop */
                    while ( have_posts() ) : the_post();

                /*
                 * Include the Post-Format-specific template for the content.
                 * If you want to override this in a child theme, then include a file
                 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
                 */
                get_template_part( 'template-parts/content', get_post_format() );

            endwhile;

            the_posts_navigation();

        else :

            get_template_part( 'template-parts/content', 'none' );

        endif; ?>
    </div>
</div>
</div>
</div>



<?php
get_sidebar();
get_footer();

Но я получаю только это изображение. Не могли бы вы мне помочь? Как я должен отображать сообщения? Это заказная тема WordPress. enter image description here

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...