Passing different content to template parts
1. Simply call the template part in each place. <?php get_template_part(‘content’,’left’); ?> and <?php get_template_part(‘content’,’right’); ?> You would then create content-left.php and content-right.php templates. 2. A different approach would be to call do_action there instead. eg. <?php do_action(‘template_content_left’); ?> This could give you an extra level of control over the content template used. eg. in … Read more