Show the page title on blog page

The call for the page title is outside the loop so you need to use this function instead: <?php echo get_the_title(); ?> Here is the updated code: <?php get_header(); ?> <section id=”primary-content” class=”col-md-9″> <?php echo get_the_title(); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class=”post”> <h2><a href=”https://wordpress.stackexchange.com/questions/146051/<?php the_permalink(); …

Read more

How to stop featured image thumbnail [set as background image] on blog index page just repeating same image across all posts

Or is it because im trying to add it to the css class .has-post-thumbnail which is applied to all posts? Yes, set_featured_background() gets first post from the loop and add .has-post-thumbnail to styles. All posts that have thumbnail (with class .has-post-thumbnail) will have the same background. Try setting the background in the template file responsible …

Read more

Adding parent pages to posts

Changing any URLs will have an effect on your SEO. So, if you want zero effect on SEO, you cannot also change URLs from example.com/post to example.com/blog/post. You’ll want to look at how well-established your site is – if you have hundreds or thousands of posts that are ranking well, you likely should not change …

Read more