Where exactly in this code does the content actually come in?
-
<?php get_header(); ?> <div id="container" class="row-inner"> <?php if( ot_get_option('blog_layout') == 'full-width' ) : ?> <div id="content"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); the_post_thumbnail('small-thumbnail'); get_template_part( 'content', get_post_format() ); endwhile; else : get_template_part( 'content', 'none' ); endif; ?> <nav class="post-navigation" role="navigation"> <?php posts_nav_link(' ', __('Newer posts', 'care'), __('Older posts', 'care'));?> </nav> </div><!-- #content --> <?php else : ?> <div id="content" class="<?php if( ot_get_option('blog_layout', 'right-sidebar') == 'right-sidebar' ) { echo 'float-left'; } else { echo 'float-right'; } ?>"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); get_template_part( 'content', get_post_format() ); endwhile; else : get_template_part( 'content', 'none' ); endif; ?> <nav class="post-navigation" role="navigation"> <?php posts_nav_link(' ', __('Newer posts', 'care'), __('Older posts', 'care'));?> </nav> </div><!-- #content --> <div id="sidebar" class="<?php if( ot_get_option('blog_layout', 'right-sidebar') == 'right-sidebar' ) { echo 'float-right'; } else { echo 'float-left'; } ?>"> <?php get_sidebar('blog'); ?> </div> <?php endif; ?> </div><!-- #container --> <?php get_footer(); ?>
I’ve been watching videos of how to insert certain elements in between the code above but everyone’s code in their index.php file looks nothing like my php code above. Any help is appreciated.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Where exactly in this code does the content actually come in?’ is closed to new replies.