(get_post_type() ==’post’)
<li <?php if (get_post_type() ==’post’) echo ‘class=”current-menu-item”‘?>><a href=”<?php echo site_url(‘/blog’); ?>”>Blog</a></li>
<li <?php if (get_post_type() ==’post’) echo ‘class=”current-menu-item”‘?>><a href=”<?php echo site_url(‘/blog’); ?>”>Blog</a></li>
<?php echo wp_trim_words(get_the_content(), 18) ?> <?php the_excerpt(); ?>
The beauty of echo paginate_links() Automatically create a pagination system for Blog, now index.php;
You can change how your author name looks under Users/Your Profile
Add this to footer.php file Remember this also adds to TOP EDIT WORDPRESS BAR when you are logged in
header.php calls this function.php thru <?php wp_head(); ?> On functions.php file, add this to get css files to header.php This
These lines are added to index.php / single.php / page.php