Removing extra p and line breaks from shortcodes in WordPress

Some time shortcodes add some some extra <p> and <br /> after of before post.This is happend because of the wpautop filter. You can easily prevent this by changing the execution priority of wpautop filter. Simply use this code on your theme functions.php [php] remove_filter( ‘the_content’, ‘wpautop’ ); add_filter( ‘the_content’, ‘wpautop’ , 12);[/php]

New Code to Display Latest Tweets

[highlight]The code below no longer works as-is with the Twitter API update to 1.1 as of 2013-06-11.Here’s a PHP way to interact with the new Twitter API.[/highlight] Twitter recently deprecated the code that we using to display latest tweets [php] <div id="twitter_update_list"></div> <script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script> <script type="text/javascript" src="http://twitter.com/statuses/user_timeline/maidul.json?callback=twitterCallback2&count=1"></script> [/php] So the above code will not …

New Code to Display Latest Tweets Read More »

Remove Width and Height Attributes from wordpress content area

When you upload images using WordPress image uploader and insert it into your post/page, it will include the image width and height attribute in the tag.if you want to remove this automatic image width and height attribute from image, you can add this code to you functions.php [php] add_filter( ‘post_thumbnail_html’, ‘remove_width_attribute’, 10 ); add_filter( ‘image_send_to_editor’, …

Remove Width and Height Attributes from wordpress content area Read More »

HTML5 Input Type Month

HTML5 introduce new Input Type Month.This month type allows users to select a month and year.It will just select the month and year with no time zone. You can call this Input Type Month using input type=”month” on your input field. Currently the latest version of Chrome, Opera and Safari browser supporting this.     …

HTML5 Input Type Month Read More »

html5 datetime

HTML5 Input Type datetime

HTML5 Input Type datetime is just like Input Type Date except it will allow visitor to select a date and time (with time zone). You can call this datetime picker using input type=”datetime” on your input field.This will certainly reduce your development time so need nasty Javascript code.

HTML5 Input Type Email

A typical email address structure is your-email@domain.com As you can never trust your website user so you have to check the email id when user submit the form. To solve this, HTML5 came with a news input type email. The syntax is as basic as a text input you just have to use type=”email”. Some …

HTML5 Input Type Email Read More »

html5 input date

HTML5 Input Type Date

HTML5 Input Type Date will allows the user to select a date. Previously this is done by Javascript date picker. To make you life easier you can now call this date picker by simply using this type=”date” on your input field. May be looks like this way : [php]<input type="date" name="birthday" />[/php] Currently the latest …

HTML5 Input Type Date Read More »

color Input Type

HTML5 Input Type Color

You can get color input box in html5 with this attribute type=”color”. With this new html5 Input Type Color, you no longer need a complex Javascript color picker. Not all major browsers support all the new input types. Only latest version of Chrome and Opera support this. If the browser are not supported, they will …

HTML5 Input Type Color Read More »

What is jQuery Mobile

jQuery Mobile is a HTML5 based user interface system for all popular mobile device platforms.It built on the rock-solid jQuery and jQuery UI foundation. jQuery mobile framework takes the “write less, do more” mantra to the next level: Instead of writing unique apps for each mobile device or OS, the jQuery mobile framework allows you …

What is jQuery Mobile Read More »

HTML5 Autocomplete Attribute

When HTML5 autocomplete is on, the browser will automatically complete values that the user has entered before. This HTML5 autocomplete attribute works with the following input types: text, search, url, tel, email, password, datepickers, range, and color. Also you can turn off this autocomplete attribute by using this attribute autocomplete=”off” [php] <form action="/" autocomplete="on"> First …

HTML5 Autocomplete Attribute Read More »