I tried multiple solutions but its not working.
When I go to /page/2, it doesn't work.
I'm executing custom query in index.php of my theme.
if ( get_query_var('paged') ) {
$paged = get_query_var('paged');
} elseif ( get_query_var('page') ) {
$paged = get_query_var('page');
} else {
$paged = 1;
}
$args = array(
'post_type' => array('post', 'music', 'videos'),
'post_status' => 'publish',
//'meta_key' => 'featured',
//'meta_value' => '1',
'posts_per_page' => 10,
'orderby'=>'date',
'order'=>'DESC',
'paged' => $paged
);
query_posts($args);
Here is the link of my website: http://fattrel.developmentdemo.net/
This page is not working (throwing 404) - http://fattrel.developmentdemo.net/page/2/ (of the format - mywebsite/page/2/)
Just realized this page 2 works - of the format - mywebsite.com/?page=2