• 18-07-2021, 19:11:39
    #1
    Arkadaşlar daha önce wordpress kullanınca öne çıkan resim "" yayın içerisinde "" gösterilmiyordu sadece anasayfada gösteriyordu. Öne çıkan resim yayında çıkıyor bunu nasıl engellerim? Şimdiden teşekkürler

    <?php
    /**
     * The template for displaying all single posts.
     *
     * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
     *
     * @package Maxima
     */
    
    get_header(); ?>
    
    <div class='o-grid'>
      <div class='o-grid__col o-grid__col--4-4-s o-grid__col--3-4-m o-grid__col--center'>
        <?php
          while ( have_posts() ) : the_post();
            get_template_part( 'template-parts/content', get_post_format() );
          endwhile;
        ?>
      </div>
    </div>
    
    <?php
    get_footer();
  • Kabul Edilen Cevap
    • <?php the_post_thumbnail( 'full', array( 'class' => 'c-post__image' ) ); ?>
      Şu kodu silersen düzelir diye düşünüyorum.
  • 18-07-2021, 19:12:54
    #2
    single.php kodlarını konuya ekler misiniz ?
  • 18-07-2021, 19:15:04
    #3
    Caxing adlı üyeden alıntı: mesajı görüntüle
    single.php kodlarını konuya ekler misiniz ?
    Güncelledim hocam
  • 18-07-2021, 19:22:58
    #4
    Template parts/ content dosyalarını paylaşır mısınız?
  • 18-07-2021, 19:28:39
    #5
    Inferno adlı üyeden alıntı: mesajı görüntüle
    Template parts/ content dosyalarını paylaşır mısınız?
    Buyrun hocam

     
    <?php
    /**
     * Template part for displaying posts.
     *
     * @link https://codex.wordpress.org/Template_Hierarchy
     *
     * @package Maxima
     */
    
    ?>
    
    <article id='post-<?php the_ID(); ?>' <?php post_class('c-post entry'); ?>>
    
      <div class='c-post__head'>
        <h1 class='c-post__title'><?php the_title(); ?></h1>
    
        <time class='c-post__date' datetime='<?php the_time( 'c' ); ?>'><?php echo get_the_date(get_option( 'date_format' )); ?></time>
    
        <?php if ( has_category() ) : ?>
          <span class='c-post__cats'>
            <?php the_category(', '); ?>
          </span>
        <?php endif; ?>
      </div>
    
      <div class='c-content'>
        <?php the_post_thumbnail( 'full', array( 'class' => 'c-post__image' ) ); ?>
        <?php the_content(); ?>
        <?php get_template_part( 'template-parts/wp-link-pages' ); ?>
      </div>
    
      <div class='o-grid'>
        <div class='o-grid__col o-grid__col--4-4-s o-grid__col--3-4-m'>
          <div class='c-tags'>
            <?php echo get_the_tag_list(); ?>
          </div>
        </div>
        <div class='o-grid__col o-grid__col--4-4-s o-grid__col--1-4-m'>
          <?php get_template_part( 'template-parts/share' ); ?>
        </div>
      </div>
    
      <hr>
    
      <?php
        if ( get_the_author_meta( 'description' ) ) {
          get_template_part( 'template-parts/author-bio' );
        }
    
        get_template_part( 'template-parts/post-navigation' );
    
        if ( comments_open() || get_comments_number() ) :
          comments_template();
        endif;
      ?>
    </article>
  • 18-07-2021, 19:36:26
    #6
    Bu cevap, konu sahibi tarafından kabul edilebilir bir cevap olarak işaretlendi.
    <?php the_post_thumbnail( 'full', array( 'class' => 'c-post__image' ) ); ?>
    Şu kodu silersen düzelir diye düşünüyorum.
  • 18-07-2021, 19:49:53
    #7
    emretanerc adlı üyeden alıntı: mesajı görüntüle
    <?php the_post_thumbnail( 'full', array( 'class' => 'c-post__image' ) ); ?>
    Şu kodu silersen düzelir diye düşünüyorum.
    Teşekkürler hocam denedim oldu