How to create Page templates for showing Blog posts in different layouts?

I wouldn’t use custom page templates merely for changing the layout of the blog posts index. Using page templates for the blog posts index bypasses the core handling for display of the blog posts index (which per the template hierarchy uses either home.php or index.php to render). Edit I never…said that I want to change … Read more

How to modify display of blog listing page?

Otherwise as suggested, this has nothing to do with template hierarchy. These templates that you are mentioning is purely for use with post formats. I qoute from the codex Post Formats is a theme feature introduced with Version 3.1. A Post Format is a piece of meta information that can be used by a theme … Read more

WordPress loop is not working

custom-header.php <!– Start Top Header affix nav–> <div id=”affix” data-spy=”affix” data-offset-top=”94″ data-offset-bottom=”0″> <!– **** START – NAVBAR SCROLLSPY FIX DO NOT REMOVE **** –> <div id=”top” class=”hide”></div> <!– **** END – NAVBAR SCROLLSPY FIX DO NOT REMOVE **** –> <!– **** START – NAV **** –> <nav class=”navbar navbar-default navbar-shrink”> <div class=”container”> <div class=”navbar-header”> <!– … Read more

How can I make my Blog category unindexed in Google?

Add the <meta name=”robots” content=”noindex”> meta tag within your <head>. Then look into is_category() to add it specifically to your category pages. Or alternatively, you can check if $cat_id is available: $cat_id = get_query_var(‘cat’); If it is available, then it is a category page. EDIT Just add it in an IF statement: if (is_category()){ <meta … Read more

Blog post – single.php url

This is normal. You probably have your Permalinks set to “Post Name”. You can change your Permalinks to “Custom Structure” and put ‘/news’ in there before the post title, so the “Custom Structure” field would look like this: /news/%postname%/ That should do it.

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