How do I make the main page be the blog page and not a separate “home” page?

There are two possible settings for this in WordPress. Option A Your front page (http://twistedtalesoftimmy.com/) is dynamic and shows the latest blog posts. Option B Your front page (http://twistedtalesoftimmy.com/) is static and points to a regular page in WordPress. There is another page (e.g. http://twistedtalesoftimmy.com/blog/) that shows the latest blog posts. You can switch between … Read more

is_home() in HTML head

both is_home() and is_front_page() works in the header or anywhwere you are using a theme template. Most likely, the problem is because you’ve hardcoded this: /wordpress/wp-content/themes/roots/style.php Try instead creating your url like this: <link rel=”stylesheet” type=”text/css” media=”all” href=”https://wordpress.stackexchange.com/questions/85053/<?php echo get_stylesheet_directory_uri(); ?>/style.php?tcount=<?php echo $count;?>” />

Insert Latest Articles in Homepage

Edit the home page template and add the following code : <h2>Recent Posts</h2> <ul> <?php $args = array( ‘numberposts’ => ‘1’ ); $recent_posts = wp_get_recent_posts( $args ); foreach( $recent_posts as $recent ){ echo ‘<li><a href=”‘ . get_permalink($recent[“ID”]) . ‘”>’ . $recent[“post_title”].'</a> </li> ‘; } ?> </ul> I have used <UL> and <li> to list post…. … Read more

home.php or frontpage (via settings) for theme?

Simply put, the WordPress template hierarchy reserves home.php for the homepage, but if you set a Front Page post, it will display that instead. If WordPress core developers reserved it for the homepage, I do not believe it would cause issues with any servers, because they would be putting everyone at risk. Hope that explains … Read more

How to create an archive for all posts that do not have a post format?

For me I’d used a little different approach: use an endpoint to create an url like http://example.com/no-formats/ hooking pre_get_posts to set the proper query if needed filter template_include to force WP to use home.php instead of duplicating it No more. add_action(‘init’, ‘add_no_format_endpoint’); function add_no_format_endpoint() { add_rewrite_endpoint( ‘no-formats’, EP_ROOT ); } add_action(‘pre_get_posts’, ‘handle_no_format’); function handle_no_format( $q … Read more

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