Posts

Moneybird API Oauth Issue – Token Request

By Kannan Damodharan | 0 Comments

The example code in the moneybird API for oauth doesn’t give a clear picture of what has to be performed to get the access token. consumer_key = “xxxxx” consumer_secret = “xxxx” # This is the subdomain of the account you want to communicate with subdomain = “xxxxxx” 1) Step 1 # Request a request token…

Read More

Jetpack not connecting 404 error

By Kannan Damodharan | 0 Comments

Check the url www.domain.com/xmlrpc.php and you should receive only “XML-RPC server accepts POST requests only.” If any other content is loaded then either you are hacked or your server is having issues.

Read More

Facebook Debugger – Bad Response Code: URL returned a bad HTTP response code : 404

By Kannan Damodharan | 0 Comments

I faced a issue with one of my clients sites after migration. The facebook debugger was returning http response code as 404 , even though the webpage was loading fine. No issues with meta tags. After hours of research its the htaccess file which was creating the issue. The site had bullet proof plugin installed…

Read More

Fetch the first image from the post

By Kannan Damodharan | 0 Comments

We can grab the first image from the post content using the below function. Use this code in functions.php of theme and makes sure you have a default image in images folder. So if no image found default image will show up. You can ignore default image if not required.

Read More

Grey background in tinymce wp_editor function

By Kannan Damodharan | 0 Comments

I faced a weird issue when adding wp_editor to a metabox in post. The visual mode was showing a weird grey background and there is no way you can overwrite using a css directly. After some research i figured out that adding a admin css with code and The admin.css should be in the root…

Read More

prettyPhoto Live Event with ajax loaded content

By Kannan Damodharan | 0 Comments

Prettyphoto is a wonderfull gallery plugin but when used with ajax loaded content it didn’t work with newly loaded images from ajax request into the dom. Even though there are many solutions posted in internet none seem to work as expected. So after playing around a while i found a simple trick Include jQuery(“a[rel^=’prettyPhoto’]”).prettyPhoto({}); or…

Read More

Bootstrap Ajax model popup not working

By Kannan Damodharan | 0 Comments

For some reasons the bootstrap model box was not loading ajax content. I was trying this is wordpress and having a hard time fixing the issue. With some research i found the solution. The code was working perfectly fine but the data didn’t refresh for some reasons. So added a bootstrap jquery snippet.

Read More

Woocommerce payflow gateway

By Kannan Damodharan | 0 Comments

I had the opportunity to build the payflow extension based on woocommerce for one of my client. If you are interested please email me

Read More

Add new Plugin requests for FTP info in localhost

By Kannan Damodharan | 0 Comments

I faced a issue recently when i tried to install a plugin using plugin installer. It was asking for ftp details which sucks!. So i tried options like changing file permissions etc, but nothing helped. With a quick research in google i found the option define(‘FS_METHOD’,’direct’); which should be added in wp-config.php. This line of…

Read More

Wp ajax call returns 0 at the end

By Kannan Damodharan | 0 Comments

To any wp ajax call add_action(‘wp_ajax_my_action’, ‘my_action_callback’); function my_action_callback() { //Do action // echo ‘My ajax action’; die(); } Don’t forget to add the die() at the end of ajax function to avoid 0 with the results.

Read More