Adding parent pages to posts

Changing any URLs will have an effect on your SEO. So, if you want zero effect on SEO, you cannot also change URLs from example.com/post to example.com/blog/post. You’ll want to look at how well-established your site is – if you have hundreds or thousands of posts that are ranking well, you likely should not change … Read more

google conversion code

User needs it in his footer so I think you should use conditional page logic. Something like: If ( is_single(postID)) { //insert tracking code } You can also use the post title or post slug, but id is the most reliable. Old Answer I would consider writing a shortcode. Add the following to your functions.php … Read more

wp_add_inline_script not adding when script_loader_tag filtered

The reason this is happening is because the markup that is filtered by script_loader_tag includes the inline scripts. So when you filter it and replace all the HTML tag for a particular script, your filter is removing those inline script tags. If you print out the original value of $tag from within your filter you … Read more

Are there any plugins yet that support Facebook Like, Google +1 and allow Social Interaction tracking on Google Analytics

This one is brand new: http://wordpress.org/extend/plugins/social-media-tracking/ and it sounds like it does what you want. But be watching Joost de Valk’s GA plugin. He mentioned just a few days ago in this thread that he’s working on it right now. He’s a prominent plugin author in the community and does good work. If you want … Read more

Can a plugin deactivate itself?

As far as I know, a plugin can be deactivated in these conditions: manual deactivation failed plugin upgrade remove or rename the containing folder changing the active plugin list in the database Hopefully someone else will come through and add to this if I missed any.

adding google event tracking to links in posts

Have a look at this article -> http://www.optimum7.com/internet-marketing/web-development/dynamic-google-analytics-event-tracking-for-wordpress.html Also to get the post title of the particular page. You could use the following jQuery ( Assuming you post title is wrapped in tag ). outbound_post_name = jQuery(‘h1’).html();

Tracking Disqus comments on Google Analytics

You can use that snippet just anywhere where it can be rendered on single pages. For example, you can paste this under functions.php of your theme: function hook_disqus_config(){ if( ! is_singular() ) return; ?> <script type=”text/javascript”> function disqus_config() { this.callbacks.onNewComment = [function(comment) { _gaq.push([‘_trackEvent’, ‘Disqus’, ‘New Comment’, comment.id]); }]; } </script> <?php } add_action( ‘wp_footer’, … Read more

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