index-common-places.php 692 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. Template Name: Common places template
  4. */
  5. global $featured_post_id;
  6. miech_set_active_cat( get_theme_mod( 'featured_category_2', 1140 ) );
  7. echo '<!-- featured_category_1 => '.get_theme_mod( 'featured_category_1', 1140 )." -->\n";
  8. get_header();
  9. if ( have_posts() ) {
  10. // Load posts loop.
  11. while ( have_posts() ) {
  12. the_post();
  13. get_template_part( 'template-parts/content/content', get_theme_mod( 'display_excerpt_or_full_post', 'excerpt' ) );
  14. }
  15. // Previous/next page navigation.
  16. twenty_twenty_one_the_posts_navigation();
  17. } else {
  18. // If no content, include the "No posts found" template.
  19. get_template_part( 'template-parts/content/content-none' );
  20. }
  21. get_footer();
  22. ?>