Support » Plugin: Simple Pagination » Very simple to use

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello, can you help me check my code? Is there some problems?

    $paged = get_query_var('paged') ? get_query_var('paged') : 1;
    	$query_arguments = array(
            'post_type' => $atts['_type'],
            'post_status' => 'publish',
            'orderby' => 'title',
    		'order' => 'ASC',
      		'ignore_sticky_posts'=> 1,
    		'showposts' => $atts['postsPerPage'],
    		'paged' => $paged,
    		'meta_key' => 'initial_letter',
    		'meta_value' => $letters,
        );
    	$trombinoscope_query = new WP_Query($query_arguments);
    	$initials_letter = '0';
        // Display Category Posts
        $html = '<div class="trombinoscope_whole">';
    	$index = 1; $current_page = 1;
        if ($trombinoscope_query->have_posts()) : while ($trombinoscope_query->have_posts()) : $trombinoscope_query->the_post();
    		$post_title = get_the_title();
    		if ($post_title) {
    			$current_letter = $post_title[0];
    		}
    		if ($current_letter != $initials_letter) :
    		$html .= '<div class="trombinoscope_list">
    		<p>'.$current_letter.'</p>
    		</div>';
    		endif;
    	 	$initials_letter = $current_letter;
    		$html .= generate_post_html();
    
            endwhile;
    if(function_exists('wp_simple_pagination')) {
        $html .= wp_simple_pagination();
    }

    My problem is that it doesn’t show the other page links

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Very simple to use’ is closed to new replies.