Code Duplication    Length = 15-16 lines in 3 locations

single.php 1 location

@@ 23-38 (lines=16) @@
20
21
      <?php
22
23
        while (have_posts()) {
24
25
        the_post();
26
27
        if (get_post_type() != 'post') {
28
            get_template_part('template-parts/content-single', get_post_type());
29
        } else {
30
            get_template_part('template-parts/content-single-post', get_post_format());
31
        }
32
33
        the_post_navigation();
34
35
        // If comments are open or we have at least one comment, load up the comment template.
36
        comments_template();
37
38
        }
39
40
// End of the loop. ?>
41

archive.php 1 location

@@ 34-48 (lines=15) @@
31
                    <?php /* Start the Loop */?>
32
                    <?php
33
34
                    while (have_posts()) {
35
                        the_post();
36
37
                        /*
38
                         * Include the Post-Format-specific template for the content.
39
                         * If you want to override this in a child theme, then include a file
40
                         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
41
                         */
42
                        if (get_post_type() != 'post') {
43
                            get_template_part('template-parts/content', get_post_type());
44
                        } else {
45
                            get_template_part('template-parts/content-post', get_post_format());
46
                        }
47
                    }
48
49
                // End while
50
51
                    if (function_exists('podium_pagination')) {

index.php 1 location

@@ 26-41 (lines=16) @@
23
                <?php if (have_posts()) {
24
                        /* Start the Loop */
25
26
                        while (have_posts()) {
27
                            the_post();
28
29
                            /*
30
                             * Include the Post-Format-specific template for the content.
31
                             * If you want to override this in a child theme, then include a file
32
                             * called content-___.php (where ___ is the Post Format name) and that will be used instead.
33
                             */
34
                            if (get_post_type() != 'post') {
35
                                get_template_part('template-parts/content', get_post_type());
36
                            } else {
37
                                get_template_part('template-parts/content-post', get_post_format());
38
                            }
39
                        }
40
41
                        if (function_exists('podium_pagination')) {
42
                            podium_pagination();
43
                        }
44