How to display an archive with multiple authors

This would make sense as an inclusion for the Co-Authors Plus plugin but you can’t always depend on plugin developers to anticipate all our needs. Sometimes we just have to build for ourselves! 🙂 (source: mikeschinkel.com) Co-Authors Stored as Terms of the Taxonomy ‘author’ Turns out what you want to do is not too hard. … Read more

Create an archive listing based on meta array

Have you looked at PHP’s date function? A quick example : $dates = $wpdb->get_col( /*your sql*/ ); if( $dates ) { $archive_year = “”; foreach( $dates as $date ) { $the_date = strtotime( $date ); $year = date( ‘Y’, $the_date ); //4 digit year, ex 1999 $month = date( ‘F’, $the_date ); //Full textual month, … Read more

Archive page showing wrong month

Try adding the following above the first if statement to see what actual day is being useddisplayed: echo get_the_date(); It might also help to add the following lines to help debug exactly what the query is doing: global $wp_query; var_dump($wp_query); The code is correct – so it has to be something else affecting the display. … Read more

remove 2014 from wp_get_archives

The only filter i could find inside the wp_get_archives function is for displaying the links. Based on the get_archives_link filter, this should work, use it in your functions.php file: $archive_year = 0; add_filter(‘get_archives_link’,’wp_get_archive_grouped_by_year’,10,2); function wp_get_archive_grouped_by_year($link_html) { global $archive_year; //Get the year from the link(probably better if you change this to regexp) $year_new = explode(‘ ‘, … Read more

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