Durum şöyle ki ,
Temamda image.php denilen bir dosya var. Galeri oluşturduğumda resime tıkladıktan sonra açılan sayfa aşağıdaki koddan geliyor gibi.
Koda baktığınızda "Next " + "Previous" yazan yeri göreceksiniz. Bunun yerine sayfa numaraları nasıl ekleyebilirim ?
<?php
?>
<?php get_header(); ?>
<div id="content">
<?php the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class('post'); ?>>
<h2><?php the_title(); ?></h2>
<div class="post-meta">
<?php if ( max_magazine_get_option( 'show_media_comments' ) == 1 ) { ?>
<span class="sep"> <3 :) - </span>
<span class="comments"><?php comments_popup_link( __('No comments', 'max-magazine'), __( '1 comment', 'max-magazine'), __('% comments', 'max-magazine')); ?></span>
<?php } ?>
</div><!-- /post-meta -->
<div class="entry">
<?php the_attachment_link($post->ID, true) ?>
<?php wp_pagenavi( array( 'type' => 'multipart' ) ); ?>
</div> <!-- entry -->
<div class="image-nav">
<span class="previous"><?php previous_image_link( false, __( '← Previous' , 'max-magazine' ) ); ?></span>
<span class="next"><?php next_image_link( false, __( 'Next →' , 'max-magazine' ) ); ?></span>
</div><!-- /image-navigation -->
<div class="parent-post-link">
<a href="<?php echo get_permalink($post->post_parent) ?>" title="<?php printf( __( 'Return to %s', 'max-magazine' ), esc_html( get_the_title($post->post_parent), 1 ) ) ?>" rev="attachment"><span class="meta-nav">« </span><?php echo get_the_title($post->post_parent) ?></a>
</div>
</div><!-- /post -->
<?php if ( max_magazine_get_option( 'show_media_comments' ) == 1 ) { ?>
<?php comments_template(); ?>
<?php } ?>
</div> <!-- /content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>