Tag Info

Hot answers tagged

2

Before Wordpress 4.1, you can show the date archive page titles with the following code: (Taken and slightly modified from the twentyfourteen theme) if ( is_day() ) { printf( __( 'Daily Archives: %s', 'twentyfourteen' ), get_the_date() ); } elseif ( is_month() ) { printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', ...


2

If you look at wp_get_archives() you will notice that the link is generated by get_archives_link(). That function supplies a filter that will allow you to replace the parens. This is fairly crude but does work. function archive_link_wpse_183665($link) { $pat = '|\(([^)])\)</li>|'; // preg_match($pat,$link,$matches); // var_dump($matches); ...


1

You could use in_array() with get_queried_object_id(): if( is_category() && in_array( get_queried_object_id(), $archive_categories ) ){ echo 'stuff'; } else { theme_loop(); }


1

Is the file named content-expertises.php or category-expertises.php? WP will use the first template file it finds in your theme directory from the following list: category-slug.php category-ID.php category.php archive.php index.php https://codex.wordpress.org/Category_Templates



Only top voted, non community-wiki answers of a minimum length are eligible