This is perfectly normal. When you set a page as front page WordPress thinks that you want to use the home url for it.
Said that, the url for your calientes page will be your home url (http://domain.com
). Now, front pages are not intened to use pagination, so if you put /page/{number}
on a fron page it is considered the 'page'
query var, not the 'paged'
, so if you have it as fron page you have to use:
$var = is_front_page() ? 'page' : 'paged';
$paged = ( get_query_var($var) ) ? get_query_var($var) : 1;
However, if you want the url stay http://domain.com/calientes/
(this will became your home url) you need a redirect and do not set 'Calientes' page as home page.
add_action('init', 'calientes_home');
function calientes_home() {
$fullurl = add_query_arg( array() );
$url = explode('?', $fullurl);
$parts = array_filter( explode('/', trim($url[0], '/') ) );
if ( $parts[0] == 'page' && is_numeric($parts[1]) ) {
wp_redirect( home_url('/calientes/page/' . $parts[1] ), 301 );
exit();
} elseif( $parts === array() ) {
wp_redirect( home_url('/calientes/'), 301 );
exit();
}
}