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

What php gets called for home_url/somepage URL?

Here’s an answer I posted elsewhere here: WordPress is not HTML. It’s PHP-based templates that build the HTML pages. You need more than just a quick answer. You need to learn about the entire process WordPress uses to build pages. Perhaps one place is to start here to figure out how WP works: https://codex.wordpress.org/New_To_WordPress_-_Where_to_Start . … 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

How to get links to previous and next archive page based on tag

Ok, thank you all who wanted to help. My final code (based on https://goo.gl/c55S3v and it is working perfectly): $this_tag = get_queried_object(); $all_tags = get_tags(); foreach( $all_tags as $position => $tag ) : if( $this_tag->term_id == $tag->term_id ) : $next_tag_pos = $position + 1; $prev_tag_pos = $position – 1; break; endif; endforeach; $prev_tag_pos = $prev_tag_pos … Read more

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