• 02-08-2019, 14:57:14
    #1
    merhaba hocalarım.

    Makalenin tümü anasayfada görünmüyor. Sorunu 2 gündür arıyorum ama işe yarayan bir çözüm bulamadım.

    <?php the_excerpt(); ?>

    bu konu sil yerine bunu koy
    <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>

    deniliyor ama üstteki kodu tema düzenleyicide ne index, ne style ne functions ne de homepage.php sayfalarında bulamadım. Nasıl yapabilirim ?
  • 02-08-2019, 15:08:12
    #2
    Merhaba, index.php kodlarını paylaşır mısınız?
  • 02-08-2019, 15:09:40
    #3
    Merhaba hocam,

    Alıntı
    <?php
    /**
    * The main template file
    *
    * This is the most generic template file in a WordPress theme
    * and one of the two required files for a theme (the other being style.css).
    * It is used to display a page when nothing more specific matches a query.
    * E.g., it puts together the home page when no home.php file exists.
    *
    * @link https://developer.wordpress.org/them...ate-hierarchy/
    *
    * @package Tabut
    */

    get_header();
    ?>
    <div id="primary" class="content-area">
    <main id="main" class="site-main">

    <?php
    if ( have_posts() ) :

    if ( is_home() && is_front_page() ) :
    ?>
    <header>
    <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
    </header>
    <?php
    endif;

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

    /*
    * Include the Post-Type-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 Type name) and that will be used instead.
    */
    get_template_part( 'template-parts/content', get_post_type() );

    endwhile;

    the_posts_navigation();

    else :

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

    endif;
    ?>

    </main><!-- #main -->
    </div><!-- #primary -->

    <?php
    get_sidebar();
    get_footer();
    Index kodları bu şekilde
  • 02-08-2019, 15:10:37
    #4
    merhaba hocam content-loop dosyası varmı yada direk loop orda olabilir.