Friday, July 11, 2014

How to render jwplayer in custom wordpress widget?

Recently while working on  wordpress news site i need to load jwplayer plugin to render there video. Wordpress jwplayer plugin working awesome in both content and text widget, but in my case i need to load it in my custom widget. i tried many ways but when i use the_content() in my widget jwplayer short code not replaced . i spend more time on this issue and i planned to load it from text widget like below

So in my widget i render the_content() like this

$content = get_the_content();
$content = apply_filters('the_content', $content);
the_widget( 'WP_Widget_Text', array('text' => $content));


it's working fine i am not sure is there any other way but the current one working awesome. hope this help some one or any one have other idea please share in comment.


Saturday, July 5, 2014

Add future image to wordpress post?

Here i am  going to discuss about how can we add feature image selection in wordpress post or pages

For Feature image  support we need to add following in your template function.php
add_theme_support( 'post-thumbnails' );

This will enable to add feature image to you post and page screen. we will list the post those only have feature image like below

query_posts( array('posts_per_page' => 5, 'meta_key' => '_thumbnail_id','post_type'=> 'post') );
if (have_posts()) :
    while (have_posts()) : the_post();
    $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'slider');
    endwhile;
endif;

using above you can get the image url and enjoy what ever you want.

Wednesday, March 19, 2014

Get Bank of india account balance using mobile.

Now a days banks come to more smarter and easier for customer facility.All banks are start to reach customers through mobile instead of branch and computer. Nearly all banks are provide mobile apps. In the same time they also consider other mobile users too

Here we going to see about how to check account balance via mobile.Hope nearlly all banks have this facility now or will add it soon.

Just give a missed call to 02233598548 from your registered mobile number they will send the detail via SMS. This service fully free of cost.


Also shared