Echo the featured image of page assigned to blog in index.php

when a page is set to be the posts page, then the ‘page_for_posts’ option will contain the page id of that page; in this case, you can output the featured image with: if( is_home() && get_option( ‘page_for_posts’ ) echo get_the_post_thumbnail( get_option( ‘page_for_posts’ ) );

Link post to blog from a static page

Welcome to WordPress! I’m going to assume you’re creating your first theme. I would start by reading about The Loop http://codex.wordpress.org/The_Loop which is a crucial concept for WordPress themes. If you designed your homepage within the WordPress admin by going to Pages, adding a new page, and putting your static homepage markup in the content … Read more

How to show page content as well as post lists

Nevermind, I found the answer. I should add the following just below <div class=”col-md-9″> <div id=”page-<?php the_ID(); ?>”> <?php if (have_posts()) : while (have_posts()) : the_post(); if ( has_post_thumbnail() ) : the_post_thumbnail(‘thumbs’); endif; echo get_the_date(‘jS F Y’); the_title(); the_content(); endwhile; endif; ?> </div>

WP Blog Page Problems – Been stuck for a week

I would suggest you to take a look at your page.php file, where you need to add a php code calling the sidebar.php file. If that doesn’t work, try using Underscores to design your website. It’s a base theme for WordPress. It’s only the default files with no customization. You have to design everything from … Read more

After WP 4.6.1 Update , Blog page started giving 500 error

There are many possibilities that causes this error. There might be your theme is not comaptible to wordpress 4.6.1 Please make on debug mode by writing change below lines in wp_config.php from define(‘WP_DEBUG’, false); to define(‘WP_DEBUG’, true); and add below line to make debug log on define(‘WP_DEBUG_LOG’, true); And then run your front end and … Read more

Pagination not working on blog grid

If you want to show pagination in home page then it require one change like in following line of your code $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; You need to replace your query variable like paged (get_query_var(‘paged’)) with page because in other pages we use paged but in home page for pagination we have … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)