I managed to get the query going, the title and description are all set.
But I still get no pagination, no images and no layout like the main blog (I’m using 3 columns).
https://doce.blog.br/top
Home: https://doce.blog.br/
I only copied the index.php template and added:
$query = new WP_Query( 'post_type=post&meta_key=views_weekly&orderby=meta_value_num&order=DESC');
And I have some filters to get my title and custom description for the page:
add_filter( 'get_the_archive_title', function( $title) {
if ( is_page( 'top' ) ) {
$title = get_the_title();
}
return $title;
}, 50 );
add_action( 'generate_after_archive_title', 'teste' );
function teste(){
if ( is_page( 'top' ) ) {
$desc = '<div class="taxonomy-description">ssss%s</div>';
echo get_the_content();
}
}