prueba
‘post’, // Cambia ‘post’ al tipo de contenido que deseas mostrar en esta página.
‘paged’ => $paged,
);
‘paged’ => $paged,
);
$custom_query = new WP_Query( $args );
while ( $custom_query->have_posts() ) : $custom_query->the_post();
get_template_part( ‘content/content’, ‘page’ );
endwhile;
// Pagination
if ( function_exists( ‘wp_pagenavi’ ) ) {
wp_pagenavi( array( ‘query’ => $custom_query ) );
} else {
// Si no tienes el plugin wp-pagenavi instalado, puedes usar la paginación predeterminada de WordPress.
previous_posts_link( ‘« Anterior’, $custom_query->max_num_pages );
next_posts_link( ‘Siguiente »’, $custom_query->max_num_pages );
}
?>