Code syntax error, “userfullName undefined”

You are missing the ‘echo’ userfullName = <?php $current_user->display_name;?> should be var userfullName = “<?php echo $current_user->display_name;?>” AND notice that I put quotes around that too. BUT!!!! You should really look at using wp_localize_script for declaring javascript variables. Example: add_action(‘wp_enqueue_scripts’, ‘fobu_front_scripts’); function fobu_front_scripts() { global $blog_id; $params = array( ‘site_url’ => site_url(), ‘blog_id’ => $blog_id … Read more

Remove Query String from Google jQuery

Filter ‘script_loader_src’, you get the source URL as first argument. Then run remove_query_arg() on this URL and return the shortened version. Sample code: add_filter( ‘script_loader_src’, ‘remove_script_version_parameter’ ); function remove_script_version_parameter( $src ) { return remove_query_arg( ‘ver’, $src ); }

Automatically post to Google+ on new post

Google does not currently have a public API to allow posting to G+ from anywhere other than their web interface. The scripts that currently do so are using the “mobile” interface to do so, and as such are fragile at best. Additionally, they don’t work with 2-step verification (which you should enable on your Google … Read more

Rich Snippets for WordPress

To be clear, the Rich Snippets tool is purely for testing what the formatting/markup of your content is already. It does nothing on its own. Most of the markup that the tool is looking for is usually baked into a theme. WordPress helps this along a little bit by incorporating parts of the hAtom format … Read more

Google saying is blocked by robots.txt without robots.txt on my website

Despite the fact your site lacks a robots.txt file, it might be worth making one to allow for Googlebot and other bots to crawl your website. Please use this example: User-agent: * Allow: / Disallow: /wp-content Note: Please remove or amend the /wp-content disallow on the robots.txt, if for whatever reason, you’d like your images … Read more