Hello. I have been looking for several option in support forum but cannot find any.
There is no category description in my theme. Maybe some clash with plugin as I read this GP enable automatically for category desc.
So then I try this coding which i found on documentaion.
add_action( 'wp', function() {
$page = (get_query_var('paged')) ? get_query_var('paged') : 1;
if ( 1 !== $page ) {
remove_action( 'generate_archive_title', 'generate_archive_title' );
add_action( 'generate_archive_title', 'tu_custom_paged_archive_title' );
};
}, 20 );
function tu_custom_paged_archive_title() {
?>
<header class="page-header">
<h1 class="page-title">
<?php the_archive_title(); ?>
</h1>
</header>
<?php
}
The problem is its only display on first page of category in archives. How to enable category description on all pages in archives?
Sorry I’m not very familiar with coding and I just moving from Thesis Theme 1.8.9 (the old one) and found GP have similar editing with thesis theme (like hooks and so on). Thanks in advance!