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/
Anasayfa da konuları özet olarak yapamıyorum ?
8
●81
- 17-04-2020, 23:58:32https://www.wpbeginner.com/wp-themes...dpress-themes/ bu konuda iki yöntemde anlatılmış
- 18-04-2020, 15:11:38Üyeliği durdurulduOnu denedim de hocam bir şey değişmedi yine de teşekkürlergmksoft adlı üyeden alıntı: mesajı görüntüle
- 18-04-2020, 17:47:46Üyeliği durdurulduKodlar hocamCaxing adlı üyeden alıntı: mesajı görüntüle
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, 12:03:10Üyeliği durdurulduMerhaba hocam content page phpnin kodları:Scorpion2763 adlı üyeden alıntı: mesajı görüntüle
<?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:21Burada 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();} ?>