Showing ads after posts in home page

I don’t believe the code worked what you have posted. If you simply copied and pasted it from your template, it would never have worked. There are a couple of syntax errors/bugs in your code <?php if((have_posts)): ?> should be <?php if(have_posts()): ?>. <?php $count ?> What does this mean. This is suppose to update … Read more

WP_Query with tax_query not working

SQL query forming is wrong SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND 0 = 1 AND wp_posts.post_type=”product” AND (wp_posts.post_status=”publish”) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 1 Here 1=1 AND 0 = 1

WXR? Export from Drupal 7 – import into WordPress

Importing in WordPress per default uses the WXR Format – which is what is importable using the default WordPress importer plugin that you can use via Admin >> Tools >> Import >> WordPress As there (IIRC) is no Drupal export standard, you will have to convert your content into the WXR format. To export in … Read more

Have image slider display only on home page

Try this <?php /** * The Header for our theme. * * Displays all of the <head> section and everything up till <div id=”content”> * * @package GovPress */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset=”<?php bloginfo( ‘charset’ ); ?>”> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <title><?php wp_title( ‘|’, true, ‘right’ ); ?></title> <link rel=”profile” … Read more

How to migrate a local WP installation onto Digital Ocean

Just use a utility like “winZip” to archive your wp-content folder (don’t bother with wp-includes and wp-admin) and then unzip it on the server. (You don’t have to zip it, but it’s much quicker to upload). For step 4, I use a script by David Coveney, which takes care of serialized urls in the databse. … Read more