• Witam chciałem zainstalowac sobie wtyczke Page Number Themes, w niektórych szablonach po zainstalowaniu wtyczki i uruchomieniu jej mamy efekt działania. Posiadam szablon GamesPress i tego efektu nie mozna uzyskac bez edycji pliku index.
    No więc zabralem się za edytowanie , według instrukcji miałem wpisać w miejscu funkcji:” previous_post() i next_post()” „<?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?>” , zrobiłem tak i wtyczka zaczęła działać tylko trochę w dziwnym efekcie. Numery stron powinny być umieszczone poziomo a niestety znajduja sie w pionie.
    Dla lepszego zbadania tego trudnego przypadku umieszczę plik index przed edycja i po.
    Przed :

    <?php get_header(); ?>
    
    	<!-- CONTENT -->
    	<div id="content">
    
    		<?php
    			if ( $paged < 2  && of_get_option('gamepress_slider_radio', '1')) : 
    
    				if (of_get_option('gamepress_slider_type') == '1'):
    
    					get_template_part( 'includes/nivo_default' ); 
    
    				elseif (of_get_option('gamepress_slider_type') == '2'):
    
    					get_template_part( 'includes/nivo_thumbnails' ); 				
    
    				endif;
    
    			endif;
    		?>
    
    		<?php if ( have_posts() ) : ?>
    
    		<section id="main-content" role="main">
    
    			<?php if ( $paged < 2  && (of_get_option('gamepress_slider_radio') == '2' || of_get_option('gamepress_slider_radio') == '1')) : ?>
    
    			<h2 class="section-header"><?php _e('Latest news', 'gamepress'); ?></h2>
    
    			<?php endif; ?>
    
    				<?php /* Start the Loop */ ?>
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<?php
    
    						if (of_get_option('gamepress_hp_layout') == '2'):
    
    							get_template_part('content','bigthumb');
    
    						elseif (of_get_option('gamepress_hp_layout') == '3') :
    
    							get_template_part('content', 'smallthumb');
    
    						else :
    
    							get_template_part('content');
    
    						endif;
    					?>
    
    				<?php endwhile; ?>
    
    		<?php else : ?>
    
    		<section id="main-content" role="main" class="full-height">
    
    				<article id="post-0" class="post no-results not-found">
    					<header class="entry-header">
    						<h1 class="entry-title"><?php _e( 'Nothing Found', 'gamepress' ); ?></h1>
    					</header><!-- .entry-header -->
    
    					<div class="entry-content">
    						<p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'gamepress' ); ?></p>
    						<?php get_search_form(); ?>
    					</div><!-- .entry-content -->
    				</article><!-- #post-0 -->
    
    			<?php endif; ?>
    
    		</section>
    		<?php
    			if(function_exists('wp_pagenavi')) :
    				wp_pagenavi();
    			else :
    		?>
    			<div class="wp-pagenavi">
    				<div class="alignleft"><?php next_posts_link('« '.__('Starsze','gamepress')) ?></div>
    				<div class="alignright"><?php previous_posts_link(__('Nowsze','gamepress').' »') ?></div>
    			</div>
    		<?php endif; ?>
    	</div>
    	<!-- END CONTENT -->
    
    	<?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Po Edycji :

    <?php get_header(); ?>
    
    	<!-- CONTENT -->
    	<div id="content">
    
    		<?php
    			if ( $paged < 2  && of_get_option('gamepress_slider_radio', '1')) : 
    
    				if (of_get_option('gamepress_slider_type') == '1'):
    
    					get_template_part( 'includes/nivo_default' ); 
    
    				elseif (of_get_option('gamepress_slider_type') == '2'):
    
    					get_template_part( 'includes/nivo_thumbnails' ); 				
    
    				endif;
    
    			endif;
    		?>
    
    		<?php if ( have_posts() ) : ?>
    
    		<section id="main-content" role="main">
    
    			<?php if ( $paged < 2  && (of_get_option('gamepress_slider_radio') == '2' || of_get_option('gamepress_slider_radio') == '1')) : ?>
    
    			<h2 class="section-header"><?php _e('Latest news', 'gamepress'); ?></h2>
    
    			<?php endif; ?>
    
    				<?php /* Start the Loop */ ?>
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<?php
    
    						if (of_get_option('gamepress_hp_layout') == '2'):
    
    							get_template_part('content','bigthumb');
    
    						elseif (of_get_option('gamepress_hp_layout') == '3') :
    
    							get_template_part('content', 'smallthumb');
    
    						else :
    
    							get_template_part('content');
    
    						endif;
    					?>
    
    				<?php endwhile; ?>
    
    		<?php else : ?>
    
    		<section id="main-content" role="main" class="full-height">
    
    				<article id="post-0" class="post no-results not-found">
    					<header class="entry-header">
    						<h1 class="entry-title"><?php _e( 'Nothing Found', 'gamepress' ); ?></h1>
    					</header><!-- .entry-header -->
    
    					<div class="entry-content">
    						<p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'gamepress' ); ?></p>
    						<?php get_search_form(); ?>
    					</div><!-- .entry-content -->
    				</article><!-- #post-0 -->
    
    			<?php endif; ?>
    
    		</section>
    		<?php
    			if(function_exists('wp_pagenavi')) :
    				wp_pagenavi();
    			else :
    		?>
    			<div class="wp-pagenavi">
    				<code><?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?></code>			</div>
    		<?php endif; ?>
    	</div>
    	<!-- END CONTENT -->
    
    	<?php get_sidebar(); ?>

    i jeszcze dam screena
    http://img692.imageshack.us/img692/9744/beztytuuswtb.png

    Dziękuje z góry za wszelkie odpowiedzi , pozdrawiam

Zobacz 4 odpowiedzi - od 1 do 4 (z 4 łącznie)
Zobacz 4 odpowiedzi - od 1 do 4 (z 4 łącznie)

Temat ‘Page Number Themes’ jest zamknięty na nowe odpowiedzi.