ashishsthanp

Zakra Child theme CPT taxonomy term title issue fix

May 24th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying archive pages
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  6. *
  7. * @package zakra
  8. */
  9.  
  10. get_header();
  11. ?>
  12.  
  13. <div id="primary" class="content-area">
  14. <?php echo apply_filters( 'zakra_after_primary_start_filter', false ); // WPCS: XSS OK. ?>
  15.  
  16. <?php if ( have_posts() ) : ?>
  17.  
  18. <header class="page-header">
  19. <?php
  20. single_term_title();
  21. the_archive_description( '<div class="archive-description">', '</div>' );
  22. ?>
  23. </header><!-- .page-header -->
  24.  
  25. <?php
  26. do_action( 'zakra_before_posts_the_loop' );
  27.  
  28. /* Start the Loop */
  29. while ( have_posts() ) :
  30. the_post();
  31.  
  32. /*
  33. * Include the Post-Type-specific template for the content.
  34. * If you want to override this in a child theme, then include a file
  35. * called content-___.php (where ___ is the Post Type name) and that will be used instead.
  36. */
  37. get_template_part( 'template-parts/content', get_post_type() );
  38.  
  39. endwhile;
  40.  
  41. do_action( 'zakra_after_posts_the_loop' );
  42.  
  43. else :
  44.  
  45. get_template_part( 'template-parts/content', 'none' );
  46.  
  47. endif;
  48. ?>
  49.  
  50. <?php echo apply_filters( 'zakra_after_primary_end_filter', false ); // // WPCS: XSS OK. ?>
  51. </div><!-- #primary -->
  52.  
  53. <?php
  54. get_sidebar();
  55. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment