• alaneayres

    (@alaneayres)


    So, I have a new wordpress site up, using comicpress, and while I’ve posted comics, they’re not showing up either in the Archive widget, or using the Year Archive template, nothing appears.

    I tried to update the archive-year.php template to look for ‘comic’ post_types, but nothing shows up.

    <?php $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts WHERE post_status = 'publish' AND post_type = 'comic' ORDER BY post_date ASC");
    				foreach ( $years as $year ) {
    				if ($year != (0) ) { ?>
    				<a href="<?php echo add_query_arg('archive_year', $year) ?>"><strong><?php echo $year ?></strong></a> |
    			<?php } } ?>

    Does anybody have any suggestions?

  • The topic ‘Archive template showing no results in ComicPress’ is closed to new replies.