Skip to main content
2 of 4
added 79 characters in body

Pagination with Custom Post Type

I created a custom post type named "noticias" and duplicated archive.php with name archive-noticias.php. Everything works but when pagination actived, don't work page 2, 3....

I use plugin "T5 Page to Seite" for change "page" slug with "pagina" slug.

<?php # -*- coding: utf-8 -*- /** * Plugin Name: T5 Page to Seite * Description: Ersetzt <code>/page/</code> durch <code>/seite/</code>. * Author: Thomas Scholz <[email protected]> * Author URI: http://toscho.de * License: MIT * License URI: http://www.opensource.org/licenses/mit-license.php */ if ( ! function_exists( 't5_page_to_seite' ) ) { register_activation_hook( __FILE__ , 't5_flush_rewrite_on_init' ); register_deactivation_hook( __FILE__ , 't5_flush_rewrite_on_init' ); add_action( 'init', 't5_page_to_seite' ); function t5_page_to_seite() { $GLOBALS['wp_rewrite']->pagination_base = 'pagina'; } function t5_flush_rewrite_on_init() { add_action( 'init', 'flush_rewrite_rules', 11 ); } } 

And add this line to .htaccess

RedirectMatch Permanent ^/(.*)/page/(.*) /$1/pagina/$2 

I'm trying check every posts of stackoverflow and WordpressAnswers but don't work. please, help me.

MONKEYMAN REWRITE ANALYZER RESULTS

http://www.vektorlab.com/rewrite.html