As for the page.php, so it didn’t really work for this changelog page. I want to render the “List category posts” plugin obsolete and I don’t want to use a “tricky” CSS hack to remove a date-line in my list, as in this post. It’s not good for accessibility (The blinds should hear the date two times for each posts, and in a weird way).
1 2 3 4 5 6 7 8 9 |
<?php $args = array( 'category__in' => '3' ); $clogs = new WP_Query( $args ); while($clogs->have_posts()) : $clogs->the_post(); ?> <h3><?php the_date(); ?></h3> <?php the_content(); ?> <?php endwhile;?> |
Here comes a beautiful before and after picture of the change in the php code!