Custom archive widget drop down menu

The archives widget uses the wp_get_archives function to generate the dropdown list. As you can see from the source code, there is no native way to use other dropdowns than yearly/monthly/weekly/daily. Unfortunately, there also is no hook to insert your own quarterly dropdown. So, there is no easy way to do this. There is a … Read more

How do I display posts of a specific day?

First things first. Do not you query_posts(). Use WP_Query instead, to prevent messing with the main query. Now, as for your question. WP_Query allows you to enter data parameters too. It even has a date query which you can check it out in the link I’ve provided. Instead of using Admin-AJAX, you can write a … Read more

Same page for startpage and archive?

Use the Taxonomy_Parameters in WordPress WP_Query like that: $args = array( ‘posts_per_page’ => 6, ‘post__not_in’ => $do_not_duplicate, ‘tax_query’ => array( ‘relation’ => ‘AND’, array( ‘taxonomy’ => ‘category’, ‘field’ => ‘slug’, ‘terms’ => ‘art’, ), array( ‘taxonomy’ => ‘country’, ‘field’ => ‘slug’, ‘terms’ => ‘france’, ), ), ); $myposts = get_posts($args); you can add the “country” … Read more

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