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 Adwords Tracking Code causing too many redirects error

In general, isn’t it better to put the Tracking code in the footer area (so that the content gets loaded before the tracking code)? But, without looking at your code, make sure that you copy/pasted the code from Adwords and didn’t inadvertently miss some code. If you comment out your tracking code (or otherwise disable … Read more

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