Custom Post Archive Listings
-
Currently I’m using a couple of pages with custom posts that I would like to be able to filter by date. Below is the code I have right now.
<div class="dd-wrap"> <select class="styled" name="archive-dropdown" onchange="document.location.href=this.options[this.selectedIndex].value;"> <option value=""><?php echo esc_attr( __( 'Date Range' ) ); ?></option> <?php wp_get_archives( 'type=monthly&format=option&show_post_count=1' ); ?> </select> </div>
I’d like to limit this to just show the posts that appear in the particular CPT “hwy65_sermons”
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom Post Archive Listings’ is closed to new replies.