• 23-07-2016, 12:28:48
    #1
    Merhaba başlıkta ne yazacağımı bilemedim tam olarak şimdi şöyle birşey yapmak istiyorum uzun bir yazı yazacağım misal onu sayfalara nasıl bölebilrim yani yazıdan bir bölümü yazıcam "sonraki sayfa" dediklerinde yazının devamı gözükücek sonraki sayfa tekrar bastıgımda yazının kalan bölümleri böyel böyle devam edicek.

    Örnek:http://shiftdelete.net/en-iyi-antivi...-2016-pc-71994
  • 23-07-2016, 20:09:03
    #2
    https://codex.wordpress.org/Function.../wp_link_pages

    Buradaki kodu diyorsun sanırım.

    <!-- nextpage -->
    Kodu ile bölüyorsun, sonra yukarıdaki verdiğim linkteki kodu single.php'ye uygun yere ekleyip stil veriyorsun.
  • 23-07-2016, 23:59:08
    #3
    Evet hocam aradğım şey sanırım bu fakat ekliyemedim. yardımcı olabilrseniz çok sevinirim.




    single.php
    <?php
    /**
     * The template for displaying all single posts.
     *
     * @package Fullsense 2
     */
    
    get_header(); ?>
    
    	<div id="primary" class="page">
    		<div id="main" class="row" role="main">
    
    			<div class="col-sm-8">
    
    					<?php the_breadcrumbs(); ?>
    
    					<div id="mobileAds"></div>
    
    					<?php if ( get_option( 'fullsense_468reklam1sec' ) == 'true' ) : ?>
    					<div class="bx">
    						<div class="p6">
    							<?php echo stripslashes(get_option('fullsense_468reklam1')); ?>
    						</div>
    					</div>
    					<?php endif; ?>
    
    					<?php add_filter( 'the_content', 'fullsense_2_add_resp_cl' ); ?>
    
    					<?php while ( have_posts() ) : the_post(); ?>
    
    						<?php get_template_part( 'templates/content', 'single' ); ?>
    
    						<?php
    							// If comments are open or we have at least one comment, load up the comment template.
    							if ( comments_open() || get_comments_number() ) :
    								comments_template();
    							endif;
    						?>
    
    
    					<?php endwhile; // End of the loop. ?>
    
    					<?php remove_filter( 'the_content', 'fullsense_2_add_resp_cl' ); ?>
    
    					<div class="bx">
    						<h4>Benzer Konular</h4>
    						<div class="p6 row">
    							<?php $rand_posts = get_posts(array('numberposts' => 6, 'orderby' => 'rand')); ?>
    							<div class="col-md-6">
    								<ul class="lst">
    									<?php for ( $i = 0; $i <= 2; $i++ ) : setup_postdata( $GLOBALS['post'] =& $rand_posts[$i] ); ?>
    										<?php get_template_part( 'templates/content', get_post_format() ); ?>
    									<?php endfor; ?>
    								</ul>
    							</div>
    							<div class="col-md-6">
    								<ul class="lst">
    									<?php for ( $i = 3; $i <= 5; $i++ ) : setup_postdata( $GLOBALS['post'] =& $rand_posts[$i] ); ?>
    										<?php get_template_part( 'templates/content', get_post_format() ); ?>
    									<?php endfor; ?>
    								</ul>
    							</div>
    						</div>
    					</div>
    
    					<?php wp_reset_query(); ?>
    
    			</div>
    			<div class="col-sm-4">
    				<?php get_sidebar(); ?>
    			</div>
    			<?php require get_template_directory() . '/includes/son-aramalar.php'; ?>
    
    <?php get_footer(); ?>
  • 24-07-2016, 00:41:34
    #4
    Sayfanda şöyle bir kod var:
    <?php get_template_part( 'templates/content', 'single' ); ?>
    Demek ki templates/content dosyasına eklemen gerekiyor sanırsam. Bir bakar mısın oraya da? Belki orada olur.
  • 24-07-2016, 00:52:43
    #5
    Onur89TR adlı üyeden alıntı: mesajı görüntüle
    Sayfanda şöyle bir kod var:
    <?php get_template_part( 'templates/content', 'single' ); ?>
    Demek ki templates/content dosyasına eklemen gerekiyor sanırsam. Bir bakar mısın oraya da? Belki orada olur.
    Dediğiniz kod üzerinde araştırdım ve buldum çok teşekkür ederim sağolun
  • 24-07-2016, 00:53:37
    #6
    Ts3Destek adlı üyeden alıntı: mesajı görüntüle
    Dediğiniz kod üzerinde araştırdım ve buldum çok teşekkür ederim sağolun
    Rica ederim. Yardımcı olabildiysem ne mutlu.