Homepage is not loading

You need to go into your new database and change the site url and home url to the new address. I suggest NOT doing this through phpmyadmin or the WP dashboard (using plugins) though as it will cause some problems. Plugins May work, but if wordpress hangs or times out or any number of things … Read more

Having trouble with customizing blog posts on the home page

As @mrben522 suggestion (in a comment to question), the resulting code should be <!– Blog Post: 6 Newest –> <?php $args = array( ‘post_type’ => ‘post’, ‘posts_per_page’ => 6 ); $the_query = new WP_Query( $args ); // The Loop if ( $the_query->have_posts() ) { while ( $the_query->have_posts() ) { $the_query->the_post(); // put it here ?> … Read more

Remove/Redirect /page/ from homepage WordPress

This is usually due to the homepage being set to list your posts. This is the default configuration for all WordPress sites since WordPress is a blogging platform first and a CMS through proper configuration. You can fix this by setting a static homepage rather than showing all your posts. Take a look in the … Read more

Warning and fatal error

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘sanitize_comment_cookies’ not found or invalid function name in /homepages/9/d346623364/htdocs/wp-includes/class-wp-hook.php on line 286 This means you have a function named sanitize_comment_cookies hooked to an action or filter, either in your theme or a plugin, but that function is not available. Look for the code: add_action(‘some_action_name’, … Read more

What is the difference between `Home page / Archieves` and the page set as homepage?

“Home page / Archives” stat doesn’t necessarily represent the number of views of a single page, although it might if your front page is a static page. The meaning of, and reason for, the designation was briefly addressed by staff member macmanx, shortly after WordPress evidently changed this stat from “Home page” to “Home page … Read more

Make current post the homepage

You can use custom template for showing current post on your home page. Using ‘orderby’ => ‘date’ Like this example… $args = array( ‘post_type’ => ‘post’, ‘posts_per_page’ => -1, ‘orderby’ => ‘date’ );