Create simple columned archive page

The best way is to make a SQL query to the database and get the results like the wp_get_archives() does but now you can manipulate the results as you wish. In your case I would do something like this I added some comments to help you understand the process. function get_archives_lists() { global $wpdb, $wp_locale; … Read more

Where is the content that is outputted by get_the_archive_description()?

That function starts like this: function get_the_archive_description() { if ( is_author() ) { $description = get_the_author_meta( ‘description’ ); } elseif ( is_post_type_archive() ) { $description = get_the_post_type_description(); } else { $description = term_description(); } so you’re looking at get_the_post_type_description(). If you check the docs for register_post_type() you’ll see that description is one of the args … Read more

Only display archive subtitle on the first archive page

is_paged() can be used to tell if you are on any page other than the first page of an archive. You could use it like this: <?php if ( $archive_subtitle && ! is_paged() ) { ?> <div class=”archive-subtitle section-inner thin max-percentage intro-text”><?php echo wp_kses_post( wpautop( $archive_subtitle ) ); ?></div> <?php } ?>

How can I loop only months foreach year?

I have tried your query. It plays in right way. I think the problem is your handling of current year in the foreach loop. I suppose you would like to achieve this effect, right? // it is the test result based on some dummy posts 2020 March 2000 October 1999 March January 1986 September 1981 … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)