the_post() in RSS feed

OK. So I think I figured this one out myself. I’ll document it here for the sake of those who may fall into the same trap. I’ve been using a template file to structure my feed. In my functions.php file, this is what the relevant portions of code looked like before: add_feed(‘weekly_deals’, ‘weekly_deals_create_feed’); function weekly_deals_create_feed(){ … Read more

Custom post type and taxonomy page templates

Looks like you got the hang of it. Taxonomy template is an archive of posts that share a term just like categories or tags, so if by looped view you mean archive then yes you are correct. you can create just one template that will include all taxonomies and use the get_template_part function to include … Read more

Is there a template tag I can use to link to the archive page corresponding to the month that a post was published on?

This is straight from the WordPress codex <?php $arc_year = get_the_time(‘Y’); ?> <?php $arc_month = get_the_time(‘m’); ?> <a href=”https://wordpress.stackexchange.com/questions/18602/<?php echo get_month_link($arc_year, $arc_month); ?>”>archive for <?php the_time(‘F Y’); ?></a>

wordpress – modifying template to show more posts

I think you can define posts number from Theme Options panel if so use ot_option(‘hp_mid_num’) as posts_per_page parameter to get more flexible query final code here <?php $wp_query = new WP_Query( array( ‘posts_per_page’ => ot_option( ‘hp_mid_num’ ), ‘cat’ => ot_option( ‘hp_mid_cat’ ), ‘paged’ => $paged ) ); ?>