What code should I add to functions.php to list pages instead of posts in visualPoster's "Post grid in columns"?
I have added the following code: But not displayed. Please tell me how.
add_action('init','add_categories_for_pages');
function add_categories_for_pages(){
register_taxonomy_for_object_type('category', 'page');
}
add_action( 'pre_get_posts', 'nobita_merge_page_categories_at_category_archive' );
function nobita_merge_page_categories_at_category_archive( $query ) {
if ( $query->is_category== true && $query->is_main_query() ) {
$query->set('post_type', array( 'post', 'page', 'nav_menu_item'));
}
}
categories break logic for purpose of Pages. So, I don't know what you do and why.
Please, note, that customization help is only for buyers with actual support. Currently, you can expect only help with possible bugs of theme
https://themeforest.net/page/item_support_policy