• 17-04-2020, 19:03:58
    #1
    Üyeliği durduruldu
    Merhaba arkadaşlar blogumdaki temada anasayfa da bile konu yazısının tamamını gösteriyor ve bunu özet olarak yapmak istiyorum
    Ayarlar kısmından denedim olmadı.Nasıl yapabilirim ?

    Blog : http://www.ozlemsaglam.com/
  • 17-04-2020, 23:55:31
    #2
    Ayarlar > Okuma kısmından, ''Akıştaki her bir yazı için dahil edin'' bölümünde ''Özet''i seçip, kaydedin.

    Saygılarımla
  • 17-04-2020, 23:58:32
    #3
    https://www.wpbeginner.com/wp-themes...dpress-themes/ bu konuda iki yöntemde anlatılmış
  • 18-04-2020, 15:11:38
    #4
    Üyeliği durduruldu
    gmksoft adlı üyeden alıntı: mesajı görüntüle
    Ayarlar > Okuma kısmından, ''Akıştaki her bir yazı için dahil edin'' bölümünde ''Özet''i seçip, kaydedin.

    Saygılarımla
    Onu denedim de hocam bir şey değişmedi yine de teşekkürler
  • 18-04-2020, 17:19:29
    #5
    index.php kodlarını ekler misiniz ?
  • 18-04-2020, 17:47:46
    #6
    Üyeliği durduruldu
    Caxing adlı üyeden alıntı: mesajı görüntüle
    index.php kodlarını ekler misiniz ?
    Kodlar hocam
    get_header(); ?>
    
        <div id="primary" class="content-area">
            <main id="main" class="site-main">
    
            <?php if ( have_posts() ) : ?>
            
                <?php if ( is_home() && ! is_front_page() ) : ?>
                    <header class="page-header">
                        <h1 class="page-title"><?php single_post_title(); ?></h1>
                    </header>
                <?php endif; ?>
    
                <?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() );
    
                // End the loop.
                endwhile;
    
                the_lifestyle_paging_nav();
    
            // If no content, include the "No posts found" template.
            else :
                get_template_part( 'template-parts/content', 'none' );
            endif;
            ?>
    
            </main><!-- .site-main -->
        </div><!-- .content-area -->
        
    <?php get_footer(); ?>
  • 19-04-2020, 00:14:08
    #7
    Merhaba,

    template-parts/content

    Buradakileride paylaşın muhtemelen default.php content.php gibi bir dosya daha olmalı içinde.
  • 19-04-2020, 12:03:10
    #8
    Üyeliği durduruldu
    Scorpion2763 adlı üyeden alıntı: mesajı görüntüle
    Merhaba,

    template-parts/content

    Buradakileride paylaşın muhtemelen default.php content.php gibi bir dosya daha olmalı içinde.
    Merhaba hocam content page phpnin kodları:
    <?php
    /**
    * The template used for displaying page content
    *
    * @since The Lifestyle 1.0
    */
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <?php the_lifestyle_post_thumbnail(); ?>
    
    <?php
    if( the_lifestyle_display_page_title() ) {
    the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header>' );
    }
    ?>
    
    <div class="entry-content">
    <?php
    the_content();
    
    wp_link_pages( array(
    'before' => '<div class="page-links"><span class="page-links-title">' . esc_html__( 'Pages:', 'the-lifestyle' ) . '</span>',
    'after' => '</div>',
    'link_before' => '<span>',
    'link_after' => '</span>',
    'pagelink' => ' %',
    'separator' => ', ',
    ) );
    ?>
    </div><!-- .entry-content -->
    
    <?php
    $page_options = get_post_meta( $post->ID, 'the_lifestyle_page_options', true );
    $display_page_share_buttons = get_theme_mod( 'display_page_share_buttons', 1 ) && ( isset( $page_options['display_share_buttons'] ) ? $page_options['display_share_buttons'] : true );
    
    the_lifestyle_entry_footer( false, $display_page_share_buttons, '<footer class="entry-footer">', '</footer>' );
    ?>
    </article><!-- #post-## -->
  • 19-04-2020, 13:15:21
    #9
    Burada da içerikle alakalı bir şey yok.
    Aradığımız şey the_content(); geçen yerler.
    the_content(); yazan yeri the_excerpt(); diye değiştirmeniz gerek.
    Eğer index ile diğer sayfaların contenti aynı dosyadan geliyor ise bu kez tüm sayfalarda özet olacaktır.
    Bu durumda şunu yapacaksınız.
    <? if (is_home()) {the_excerpt(); } else {the_content();} ?>