14 |
15 |
19 |
20 |
25 |
26 |
27 |
28 | Filter Posts:
All Posts
29 | 'name',
33 | 'order' => 'ASC',
34 | )
35 | );
36 |
37 | foreach ( $cw_theme_categories as $cw_theme_category ) {
38 | printf( '
%s Posts', esc_url( get_category_link( $cw_theme_category->term_id ) ), esc_html( $cw_theme_category->name ) );
39 | }
40 | ?>
41 |
42 |
43 |
44 | have_posts() ) {
46 |
47 | echo '';
48 |
49 | $cw_theme_current_year = false;
50 |
51 | /* Start the Loop */
52 | while ( $wp_query->have_posts() ) {
53 | $wp_query->the_post();
54 |
55 | $cw_theme_post_year = get_the_date( 'Y' );
56 |
57 | if ( $cw_theme_post_year !== $cw_theme_current_year ) {
58 |
59 | if ( false !== $cw_theme_current_year ) {
60 | echo '
';
61 | echo '
';
62 | }
63 |
64 | echo '';
65 | printf( '
%s
', intval( $cw_theme_post_year ) );
66 | echo '
';
67 |
68 | }
69 |
70 | $cw_theme_current_year = $cw_theme_post_year;
71 | ?>
72 |
73 | ', '' ); ?>
74 |
75 |
76 |
80 |
81 |
82 |
83 |
84 |