<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5400190697732375451</id><updated>2024-09-11T09:02:05.827+06:00</updated><category term="Functions"/><category term="Roles and Capabilities wordpress"/><category term="Wordpress"/><category term="create Widget"/><category term="meta data"/><category term="sidebar"/><category term="update table"/><category term="wordpress meta data"/><category term="wordpress sidebar"/><category term="wordpress table data update"/><category term="wp"/><category term="wp email"/><category term="wp html mail"/><title type='text'>WordPress tips</title><subtitle type='html'>- Jibon Bikash Roy</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>157</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-2665881163449285924</id><published>2015-05-24T16:04:00.000+06:00</published><updated>2015-05-24T16:04:32.986+06:00</updated><title type='text'>Wordpress woocommerce shipping payment change on postcode </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre&gt;
function custom_override_checkout_fields( $fields ) {
$fields[&#39;billing&#39;][&#39;billing_postcode&#39;] = array(
   &#39;label&#39;     =&gt; __(&#39;Postcode&#39;, &#39;woocommerce&#39;),
   &#39;placeholder&#39;   =&gt; _x(&#39;Postcode&#39;, &#39;placeholder&#39;, &#39;woocommerce&#39;),
   &#39;required&#39;    =&gt; true,
   &#39;clear&#39;       =&gt; false,
   &#39;type&#39;        =&gt; &#39;select&#39;,
            &#39;class&#39; =&gt; array(&#39;update_totals_on_change&#39;),
   &#39;options&#39;     =&gt; array(
        &#39;E1&#39; =&gt; __(&#39;E1&#39;, &#39;woocommerce&#39; ),
        &#39;E2&#39; =&gt; __(&#39;E2&#39;, &#39;woocommerce&#39; )
        )
 );
}
add_filter( &#39;woocommerce_checkout_fields&#39; , &#39;custom_override_checkout_fields&#39; );

&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/2665881163449285924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2015/05/wordpress-woocommerce-shipping-payment.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/2665881163449285924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/2665881163449285924'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2015/05/wordpress-woocommerce-shipping-payment.html' title='Wordpress woocommerce shipping payment change on postcode '/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-1619424700907910884</id><published>2015-02-19T16:42:00.002+06:00</published><updated>2015-02-19T16:42:49.047+06:00</updated><title type='text'>How to include redux framework in your theme functions.php </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;pre&gt;

if ( !class_exists( &#39;ReduxFramework&#39; ) &amp;&amp; file_exists( dirname( __FILE__ ) . &#39;/redux-framework/ReduxCore/framework.php&#39; ) ) {
    require_once( dirname( __FILE__ ) . &#39;/redux-framework/ReduxCore/framework.php&#39; );
}
if ( !isset( $redux_demo ) &amp;&amp; file_exists( dirname( __FILE__ ) . &#39;/redux-framework/sample/sample-config.php&#39; ) ) {
    require_once( dirname( __FILE__ ) . &#39;/redux-framework/sample/sample-config.php&#39; );
}

&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/1619424700907910884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2015/02/how-to-include-redux-framework-in-your.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/1619424700907910884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/1619424700907910884'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2015/02/how-to-include-redux-framework-in-your.html' title='How to include redux framework in your theme functions.php '/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-6633222385731564991</id><published>2015-02-19T16:26:00.000+06:00</published><updated>2015-02-19T16:26:01.293+06:00</updated><title type='text'>Hook wp_enqueue_scripts load in header and footer</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre&gt;

function load_scripts_basic() {

    global $wp_scripts;
    wp_enqueue_style( &#39;style-name&#39;, get_stylesheet_uri() );
    wp_enqueue_style( &#39;style-bootstrap&#39;, get_template_directory_uri().&#39;/css/bootstrap.min.css&#39; );
    wp_enqueue_style( &#39;style-normalize&#39;, get_template_directory_uri().&#39;/css/normalize.css&#39; );
    wp_enqueue_style( &#39;style-awesome&#39;, get_template_directory_uri().&#39;/css/font-awesome.min.css&#39; );
    wp_enqueue_style( &#39;style-main&#39;, get_template_directory_uri().&#39;/css/styles.css&#39; );
    wp_enqueue_style( &#39;style-eng&#39;, get_template_directory_uri().&#39;/engine1/style.css&#39; );

    wp_enqueue_script( &#39;jquery-min&#39;, get_template_directory_uri() . &#39;/js/jquery.min.js&#39;, false );
    wp_enqueue_script( &#39;jquery-res_collapse_menu&#39;, get_template_directory_uri() . &#39;/js/res_collapse_menu.js&#39;, array(), &#39;1.0.0&#39;, false );
  

    wp_enqueue_script( &#39;jquery-fade&#39;, get_template_directory_uri() . &#39;/js/fade.js&#39;, array(), &#39;1.0.0&#39;, false );
    wp_enqueue_script( &#39;bootstrap.newsbox&#39;, get_template_directory_uri() . &#39;/js/jquery.bootstrap.newsbox.min.js&#39;, array(), &#39;1.0.0&#39;, false );

    wp_register_script(&#39;html5shiv&#39;,get_bloginfo(&#39;template_url&#39;).&#39;/js/html5shiv.js&#39;,array(),&#39;1.0.0&#39;);
    $wp_scripts-&gt;add_data( &#39;html5shiv&#39;, &#39;conditional&#39;, &#39;lt IE 9&#39; );

    wp_register_script(&#39;respond.min&#39;, get_bloginfo(&#39;template_url&#39;).&#39;/js/respond.min.js&#39;, array(), &#39;1.0.0&#39; );
    $wp_scripts-&gt;add_data( &#39;respond.min&#39;, &#39;conditional&#39;, &#39;lt IE 9&#39; );

// load script in footer
    wp_enqueue_script( &#39;bootstrap&#39;, get_template_directory_uri() . &#39;/js/bootstrap.min.js&#39;, array(), &#39;1.0.0&#39;, true );
    wp_enqueue_script( &#39;cbpAnimatedHeader&#39;, get_template_directory_uri() . &#39;/js/cbpAnimatedHeader.js&#39;, array(), &#39;1.0.0&#39;, true );
    wp_enqueue_script( &#39;custom&#39;, get_template_directory_uri() . &#39;/js/custom.js&#39;, array(), &#39;1.0.0&#39;, true );


}
add_action( &#39;wp_enqueue_scripts&#39;, &#39;load_scripts_basic&#39; );
&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/6633222385731564991/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2015/02/hook-wpenqueuescripts-load-in-header.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/6633222385731564991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/6633222385731564991'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2015/02/hook-wpenqueuescripts-load-in-header.html' title='Hook wp_enqueue_scripts load in header and footer'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-152185421667656280</id><published>2015-02-19T16:17:00.000+06:00</published><updated>2015-02-19T16:17:13.519+06:00</updated><title type='text'>Creating a meta box for posts Titan Framework</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;pre&gt;

if ( !class_exists( &#39;TitanFramework&#39; ) &amp;&amp; file_exists( dirname( __FILE__ ) . &#39;/titan/titan-framework-embedder.php&#39; ) ) {
    require_once( dirname( __FILE__ ) . &#39;/titan/titan-framework-embedder.php&#39; );
}


function theme_meta_options() {
    $titan = TitanFramework::getInstance( &#39;pmi&#39; );
    $myMetaBox = $titan-&gt;createMetaBox( array(
        &#39;name&#39; =&gt; &#39;Event Option&#39;,
        &#39;post_type&#39;  =&gt;array(&#39;post&#39;)
    ) );

    $myMetaBox-&gt;createOption(array(
        &#39;name&#39;  =&gt; &#39;Event Start Date &amp; Time&#39;,
        &#39;type&#39;  =&gt; &#39;date&#39;,
        &#39;id&#39;    =&gt; &#39;eventdatentime&#39;,
        &#39;desc&#39;  =&gt; &#39;Event Data &amp; time&#39;,
        &#39;date&#39;  =&gt; true,
        &#39;time&#39;  =&gt; true
    )) ;


    $myMetaBox-&gt;createOption( array(
        &#39;name&#39; =&gt; &#39;Venue&#39;,
        &#39;id&#39; =&gt; &#39;event_venue&#39;,
        &#39;type&#39; =&gt; &#39;text&#39;,
        &#39;desc&#39; =&gt; &#39;Venue Address&#39;,

    ) );

    $myMetaBox-&gt;createOption(array(
        &#39;name&#39;  =&gt; &#39;End Date &amp; Time&#39;,
        &#39;type&#39;  =&gt; &#39;date&#39;,
        &#39;id&#39;    =&gt; &#39;eventenddatentime&#39;,
        &#39;desc&#39;  =&gt; &#39;Event End Data &amp; time&#39;,
        &#39;date&#39;  =&gt; true,
        &#39;time&#39;  =&gt; true
    )) ;

}

add_action( &#39;tf_create_options&#39;, &#39;theme_meta_options&#39; );

&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/152185421667656280/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2015/02/creating-meta-box-for-posts-titan.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/152185421667656280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/152185421667656280'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2015/02/creating-meta-box-for-posts-titan.html' title='Creating a meta box for posts Titan Framework'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-7963089656059914162</id><published>2014-10-10T22:10:00.003+06:00</published><updated>2014-10-10T22:12:06.418+06:00</updated><title type='text'>Create custom add_menu_page and add_submenu_page in admin panel</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;

&lt;br /&gt;
&lt;pre&gt;
function theme_options_panel(){
  add_menu_page(&#39;Theme page title&#39;, &#39;Theme menu label&#39;, &#39;manage_options&#39;, &#39;theme-options&#39;, &#39;wps_theme_func&#39;);
  add_submenu_page( &#39;theme-options&#39;, &#39;Settings page title&#39;, &#39;Settings menu label&#39;, &#39;manage_options&#39;, &#39;theme-op-settings&#39;, &#39;wps_theme_func_settings&#39;);
  add_submenu_page( &#39;theme-options&#39;, &#39;FAQ page title&#39;, &#39;FAQ menu label&#39;, &#39;manage_options&#39;, &#39;theme-op-faq&#39;, &#39;wps_theme_func_faq&#39;);
}
add_action(&#39;admin_menu&#39;, &#39;theme_options_panel&#39;);

function wps_theme_func(){
                
}
function wps_theme_func_settings(){
                
}
function wps_theme_func_faq(){
                
}
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/7963089656059914162/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2014/10/create-custom-addmenupage-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/7963089656059914162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/7963089656059914162'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2014/10/create-custom-addmenupage-and.html' title='Create custom add_menu_page and add_submenu_page in admin panel'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-8275908098822465793</id><published>2014-05-07T17:35:00.000+06:00</published><updated>2014-05-07T17:35:11.263+06:00</updated><title type='text'>Remove shortcode from the_content_rss</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre&gt;

 
function filter_shortcode_from_content_rss($content) {
$content = strip_shortcodes($content);
return $content;
}
add_filter(&#39;the_content_rss&#39;, &#39;filter_shortcode_from_content_rss&#39;);
&lt;/pre&gt;

&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/8275908098822465793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2014/05/remove-shortcode-from-thecontentrss.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/8275908098822465793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/8275908098822465793'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2014/05/remove-shortcode-from-thecontentrss.html' title='Remove shortcode from the_content_rss'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-7856161043529877752</id><published>2014-02-06T13:09:00.002+06:00</published><updated>2014-02-06T13:09:31.703+06:00</updated><title type='text'>Deleting WordPress Revisions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre&gt;

DELETE a,b,c
FROM wp_posts a
LEFT JOIN wp_term_relationships b ON (a.ID = b.object_id)
LEFT JOIN wp_postmeta c ON (a.ID = c.post_id)
WHERE a.post_type = &#39;revision&#39;
&lt;/pre&gt;

&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/7856161043529877752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2014/02/deleting-wordpress-revisions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/7856161043529877752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/7856161043529877752'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2014/02/deleting-wordpress-revisions.html' title='Deleting WordPress Revisions'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-5397357262712506881</id><published>2014-01-30T15:58:00.000+06:00</published><updated>2014-01-30T15:58:09.516+06:00</updated><title type='text'>WordPress Error Reporting</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre&gt;
define(&#39;WP_DEBUG&#39;, true);
define(&#39;WP_DEBUG_LOG&#39;, true);
define(&#39;WP_DEBUG_DISPLAY&#39;, false);
@ini_set(&#39;display_errors&#39;, 0);
&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/5397357262712506881/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2014/01/wordpress-error-reporting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/5397357262712506881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/5397357262712506881'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2014/01/wordpress-error-reporting.html' title='WordPress Error Reporting'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-4929881980988622174</id><published>2013-12-01T22:32:00.000+06:00</published><updated>2013-12-01T22:32:15.356+06:00</updated><title type='text'>wordpress tax_query where taxonomy</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre&gt;
    $terms = get_terms(&#39;txnm_project&#39;, array(&#39;include&#39; =&gt; $metaportfolio-&gt;peoductinclude));
        foreach($terms as $term){
            $in_area[] = $term-&gt;term_id; 
        }
     
   $posts = get_posts(array(
    &#39;post_type&#39;   =&gt; &#39;product&#39;,
    
                            &#39;tax_query&#39; =&gt; array(
                            array(
                             &#39;taxonomy&#39; =&gt; &#39;txnm_project&#39;,
                              &#39;terms&#39; =&gt; $page_terms[&#39;area_term&#39;] ? $page_terms[&#39;area_term&#39;] : $in_area,
                             &#39;field&#39; =&gt; &#39;id&#39;,
                               
                            )
                           ),
                         
                        
                               
                                &#39;numberposts&#39; =&gt; $metaportfolio-&gt;countperpage,
    &#39;order&#39;       =&gt; $metaportfolio-&gt;sorting ? &#39;ASC&#39; : &#39;DESC&#39;,
   ));
&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/4929881980988622174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2013/12/wordpress-taxquery-where-taxonomy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/4929881980988622174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/4929881980988622174'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2013/12/wordpress-taxquery-where-taxonomy.html' title='wordpress tax_query where taxonomy'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-5450178616650768040</id><published>2013-09-05T12:34:00.000+06:00</published><updated>2013-09-05T12:34:38.613+06:00</updated><title type='text'>display your title with limited words</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre&gt;
 echo wp_trim_words( get_the_title(), 2 ); 
&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/5450178616650768040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2013/09/display-your-title-with-limited-words.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/5450178616650768040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/5450178616650768040'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2013/09/display-your-title-with-limited-words.html' title='display your title with limited words'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-1285866279545319539</id><published>2013-07-25T16:50:00.000+06:00</published><updated>2013-07-25T16:50:49.279+06:00</updated><title type='text'>custom post type with category query</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre&gt;

$paged = (get_query_var(&#39;paged&#39;)) ? get_query_var(&#39;paged&#39;) : 1;   
    $args = array(
    &#39;post_type&#39; =&gt; &#39;audio&#39;, 
  &#39;paged&#39; =&gt; $paged,
   &#39;posts_per_page&#39; =&gt; 15,   
  &#39;tax_query&#39; =&gt; array(
  array(
   &#39;taxonomy&#39; =&gt; &#39;audio_category&#39;,
   &#39;terms&#39; =&gt; array($cat),
   &#39;field&#39; =&gt; &#39;id&#39;,
  )
 ),
  
    &#39;meta_query&#39; =&gt; array(
        array(
            &#39;key&#39; =&gt; &#39;singername&#39;,
            &#39;value&#39; =&gt; $archivesinger,
     &#39;compare&#39; =&gt; &#39;LIKE&#39;
                ),        
        array(
            &#39;key&#39; =&gt; &#39;albumn&#39;,
            &#39;value&#39; =&gt; $archivealbum,
            &#39;compare&#39; =&gt; &#39;LIKE&#39;
        ), 
 
 ),
  
);

&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/1285866279545319539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2013/07/custom-post-type-with-category-query.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/1285866279545319539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/1285866279545319539'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2013/07/custom-post-type-with-category-query.html' title='custom post type with category query'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-1656338873744540107</id><published>2013-07-24T11:40:00.000+06:00</published><updated>2013-07-24T11:41:12.792+06:00</updated><title type='text'>How To Create Custom Taxonomies Fields In WordPress</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre&gt;
&lt;p&gt;&amp;lt;?php&lt;br /&gt;
  add_action(&#39;category_add_form_fields&#39;,&#39;extra_category_fields&#39;);&lt;br /&gt;
  add_action ( &#39;edit_category_form_fields&#39;, &#39;extra_category_fields&#39;);&lt;br /&gt;
  //add extra fields to category edit form callback function&lt;br /&gt;
  function extra_category_fields( $tag ) {    
  $t_id = $tag-&amp;gt;term_id;&lt;br /&gt;
  $cat_meta = get_option( &amp;quot;category_$t_id&amp;quot;);&lt;br /&gt;
  ?&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;tr class=&amp;quot;form-field&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;th scope=&amp;quot;row&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;label for=&amp;quot;extra1&amp;quot;&amp;gt;&amp;lt;?php _e(&#39;Category Sidebar&#39;); ?&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;td&amp;gt;&lt;br /&gt;
  &amp;lt;select name=&amp;quot;Cat_meta[sidebarpage]&amp;quot; id=&amp;quot;Cat_meta[sidebarpage]&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;option value=&amp;quot;&amp;quot;&amp;gt; &amp;lt;/option&amp;gt;&lt;br /&gt;
  &amp;lt;option value=&amp;quot;organization&amp;quot; &amp;lt;?php if($cat_meta[&#39;sidebarpage&#39;]==&amp;quot;organization&amp;quot;) echo &amp;quot;selected&amp;quot;;?&amp;gt;&amp;gt;Organization Menu &amp;lt;/option&amp;gt;&lt;br /&gt;
  &amp;lt;option value=&amp;quot;culturalbuilding&amp;quot; &amp;lt;?php if($cat_meta[&#39;sidebarpage&#39;]==&amp;quot;culturalbuilding&amp;quot;) echo &amp;quot;selected&amp;quot;;?&amp;gt;&amp;gt;Cultural building Menu&amp;lt;/option&amp;gt;&lt;br /&gt;
  &amp;lt;/select&amp;gt;&lt;br /&gt;
  &amp;lt;br /&amp;gt;&lt;br /&gt;
  &amp;lt;?php //echo $cat_meta[&#39;sidebarpage&#39;];?&amp;gt;&lt;br /&gt;
  &amp;lt;span class=&amp;quot;description&amp;quot;&amp;gt;&amp;lt;?php _e(&#39;Category Sidebar design&#39;); ?&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
  &amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;&amp;lt;?php&lt;br /&gt;
  }&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;add_action(&#39;create_category&#39;,&#39;save_extra_category_fileds&#39;);&lt;br /&gt;
  add_action ( &#39;edited_category&#39;, &#39;save_extra_category_fileds&#39;);&lt;br /&gt;
  // save extra category extra fields callback function&lt;br /&gt;
  function save_extra_category_fileds( $term_id ) {&lt;br /&gt;
  if ( isset( $_POST[&#39;Cat_meta&#39;] ) ) {&lt;br /&gt;
  $t_id = $term_id;&lt;br /&gt;
  $cat_meta = get_option( &amp;quot;category_$t_id&amp;quot;);&lt;br /&gt;
  $cat_keys = array_keys($_POST[&#39;Cat_meta&#39;]);&lt;br /&gt;
  foreach ($cat_keys as $key){&lt;br /&gt;
  if (isset($_POST[&#39;Cat_meta&#39;][$key])){&lt;br /&gt;
  $cat_meta[$key] = $_POST[&#39;Cat_meta&#39;][$key];&lt;br /&gt;
  }&lt;br /&gt;
  }&lt;br /&gt;
  //save the option array&lt;br /&gt;
  update_option( &amp;quot;category_$t_id&amp;quot;, $cat_meta );&lt;br /&gt;
  }&lt;br /&gt;
  }&lt;/p&gt;
  &lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/1656338873744540107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2013/07/how-to-create-custom-taxonomies-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/1656338873744540107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/1656338873744540107'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2013/07/how-to-create-custom-taxonomies-in.html' title='How To Create Custom Taxonomies Fields In WordPress'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-4659056243281029563</id><published>2013-07-15T16:18:00.002+06:00</published><updated>2013-07-15T16:18:50.556+06:00</updated><title type='text'>Add Pop-up Windows to Your WordPress</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre&gt;
add_action(&#39;init&#39;, &#39;init_theme_method&#39;);
 
function init_theme_method() {
   add_thickbox();
}
&lt;/pre&gt;
&lt;br /&gt;

&lt;div&gt;
&lt;pre&gt;
  &lt;div&gt;&amp;lt;div style=&amp;quot;text-align:center;padding:20px;&amp;quot;&amp;gt; &lt;/div&gt;
  &lt;div&gt;&amp;lt;input alt=&amp;quot;#TB_inline?height=300&amp;amp;amp;width=400&amp;amp;amp;inlineId=examplePopup1&amp;quot; title=&amp;quot;add a caption to title attribute / or leave blank&amp;quot; class=&amp;quot;thickbox&amp;quot; type=&amp;quot;button&amp;quot; value=&amp;quot;Show Thickbox Example Pop-up 1&amp;quot; /&amp;gt;  &lt;/div&gt;
  &lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br&gt;
&lt;div&gt;
&lt;pre&gt;
  &lt;div&gt;&amp;lt;div id=&amp;quot;examplePopup1&amp;quot; style=&amp;quot;display:none&amp;quot;&amp;gt;&lt;/div&gt;
  &lt;div&gt;&amp;lt;h2&amp;gt;Example Pop-up Window 1&amp;lt;/h2&amp;gt;&lt;/div&gt;
  &lt;div&gt;&amp;lt;div style=&amp;quot;float:left;padding:10px;&amp;quot;&amp;gt;&lt;/div&gt;
  &lt;div&gt;&amp;lt;img src=&amp;quot;&lt;a href=&quot;http://shibashake.com/wordpress-theme/wp-content/uploads/2010/03/bio1.jpg&quot;&gt;http://shibashake.com/wordpress-theme/wp-content/uploads/2010/03/bio1.jpg&lt;/a&gt;&amp;quot;  width=&amp;quot;150&amp;quot; height = &amp;quot;168&amp;quot;/&amp;gt;&lt;/div&gt;
  I   was born at DAZ Studio. They created me with utmost care and that is   why I am the hottie that you see today. My interests include posing,   trying out cute outfits, and more posing.
  &lt;div&gt; &lt;/div&gt;
  &lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/4659056243281029563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2013/07/add-pop-up-windows-to-your-wordpress.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/4659056243281029563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/4659056243281029563'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2013/07/add-pop-up-windows-to-your-wordpress.html' title='Add Pop-up Windows to Your WordPress'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-8733806162381005575</id><published>2013-06-16T13:00:00.003+06:00</published><updated>2013-06-16T13:00:41.619+06:00</updated><title type='text'>WordPress How-To: Force Direct Filewrites For Upgrades</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In short, all you need to do is to add the following 3 lines somewhere near the top of your wp-config.php file:
&lt;b&gt;Don’t use this code unless you know what you are doing!&lt;/b&gt;
&lt;pre&gt;
define( &#39;FS_METHOD&#39;, &#39;direct&#39; );
define( &#39;FS_CHMOD_DIR&#39;, 0777 );
define( &#39;FS_CHMOD_FILE&#39;, 0777 );
&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/8733806162381005575/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2013/06/wordpress-how-to-force-direct.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/8733806162381005575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/8733806162381005575'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2013/06/wordpress-how-to-force-direct.html' title='WordPress How-To: Force Direct Filewrites For Upgrades'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-6612570450541727197</id><published>2013-06-16T12:58:00.002+06:00</published><updated>2013-06-16T12:58:42.939+06:00</updated><title type='text'>How to Update WordPress Automatically Without Using FTP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Don’t use this code unless you know what you are doing!&lt;/b&gt;
&lt;pre&gt;
define( &#39;FS_METHOD&#39;, &#39;direct&#39; );
&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/6612570450541727197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2013/06/how-to-update-wordpress-automatically.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/6612570450541727197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/6612570450541727197'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2013/06/how-to-update-wordpress-automatically.html' title='How to Update WordPress Automatically Without Using FTP'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-4866046521005490445</id><published>2013-06-15T13:39:00.002+06:00</published><updated>2013-06-15T13:39:54.796+06:00</updated><title type='text'>wordpress meta value search(Multisite Global Search  plugin)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://wordpress.org/plugins/multisite-global-search/&quot;&gt;Multisite global search&lt;/a&gt;
You can search meta value, just add this code in shortcodes.php

&lt;pre&gt;
$termsearch = &quot;( post_title LIKE &#39;%%&quot;.$term.&quot;%%&#39; OR post_content LIKE &#39;%%&quot;.$term.&quot;%%&#39; OR &quot;.$wpdb-&gt;base_prefix.&quot;v_postmeta.meta_value LIKE &#39;%%&quot;.$term.&quot;%%&#39; ) &quot;;
&lt;/pre&gt;

&lt;pre&gt;
 $request = $wpdb-&gt;prepare( &quot;SELECT &quot;.$wpdb-&gt;base_prefix.&quot;v_posts.* from &quot;.$wpdb-&gt;base_prefix.&quot;v_posts left join &quot;.$wpdb-&gt;users.&quot; on &quot;.$wpdb-&gt;users.&quot;.ID=&quot;.$wpdb-&gt;base_prefix.&quot;v_posts.post_author &quot;. &quot; LEFT JOIN &quot;.$wpdb-&gt;base_prefix.&quot;v_postmeta ON(&quot;.$wpdb-&gt;base_prefix.&quot;v_posts.ID = &quot;.$wpdb-&gt;base_prefix.&quot;v_postmeta.post_id)&quot;.

&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/4866046521005490445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2013/06/wordpress-meta-value-searchmultisite.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/4866046521005490445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/4866046521005490445'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2013/06/wordpress-meta-value-searchmultisite.html' title='wordpress meta value search(Multisite Global Search  plugin)'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-5476498997815372136</id><published>2013-06-12T17:54:00.000+06:00</published><updated>2013-06-12T17:54:09.291+06:00</updated><title type='text'>How Can I add a WordPress menu to the content of my page?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre&gt;
function content_menu_shortcode($atts, $content = null) {
extract(shortcode_atts(array( &#39;name&#39; =&gt; null, ), $atts));
return wp_nav_menu( array( &#39;menu&#39; =&gt; $name, &#39;echo&#39; =&gt; false ) );
}
add_shortcode(&#39;menu&#39;, &#39;content_menu_shortcode&#39;);
&lt;/pre&gt;
[menu name=&quot;content-menu&quot;]
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/5476498997815372136/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2013/06/how-can-i-add-wordpress-menu-to-content.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/5476498997815372136'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/5476498997815372136'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2013/06/how-can-i-add-wordpress-menu-to-content.html' title='How Can I add a WordPress menu to the content of my page?'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-9058451393625557546</id><published>2013-06-09T23:27:00.002+06:00</published><updated>2013-06-09T23:27:51.244+06:00</updated><title type='text'>Display multiple custom field values with the same custom field type</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre&gt;
$beedroomsbefore = get_post_meta($post-&gt;ID, &#39;bedroomsbefore&#39;, false);

if ($beedroomsbefore) {
foreach ($bedroomsbefore as $bedroomsbefore) {
echo &#39;&lt;img src=&quot;&#39;.$bedroomsbefore.&#39;&quot; title=&quot;&#39;.get_the_title().&#39;&quot;  alt=&quot;&#39;.get_the_title().&#39;&quot;/&gt;&#39;;
}
}
&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/9058451393625557546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2013/06/display-multiple-custom-field-values.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/9058451393625557546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/9058451393625557546'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2013/06/display-multiple-custom-field-values.html' title='Display multiple custom field values with the same custom field type'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-7071346421807459742</id><published>2013-05-15T13:06:00.001+06:00</published><updated>2013-05-15T13:06:34.930+06:00</updated><title type='text'>Nextgen gallery WYSIWYG description area(just gallery description not for gallery picture description)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre&gt;
$editor_id = &quot;gallerydesc&quot;;
$tacontent = stripslashes($gallery-&gt;galdesc);
wp_editor($tacontent,$editor_id,array(&quot;media_buttons&quot;=&gt;FALSE,&quot;textarea_name&quot;=&gt;$editor_id,&quot;teeny&quot;=&gt;true,&quot;textarea_rows&quot;=&gt;4,&quot;editor_css&quot;=&gt;&quot;&lt;style&gt;.wp-editor-container{width:95%;}&lt;/style&gt;&quot;,&quot;quicktags&quot;=&gt;false,&quot;tinymce&quot;=&gt;array(&quot;theme_advanced_buttons1&quot;=&gt;&quot;bold, italic, underline, blockquote, separator, strikethrough, link, unlink&quot;) ));
&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/7071346421807459742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2013/05/nextgen-gallery-wysiwyg-description.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/7071346421807459742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/7071346421807459742'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2013/05/nextgen-gallery-wysiwyg-description.html' title='Nextgen gallery WYSIWYG description area(just gallery description not for gallery picture description)'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-8215028868441726429</id><published>2013-05-11T21:32:00.000+06:00</published><updated>2013-05-11T21:32:04.036+06:00</updated><title type='text'>Syntax Highlighter wp plugin</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;a href=&quot;http://wordpress.org/extend/plugins/syntaxhighlighter/&quot; target=&quot;_blank&quot;&gt;syntax highlighter&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://wordpress.org/extend/plugins/wp-syntax/&quot; target=&quot;_blank&quot;&gt;WP-Syntax&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://wordpress.org/extend/plugins/wp-syntaxhighlighter/&quot; target=&quot;_blank&quot;&gt;WP SyntaxHighlighter&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://wordpress.org/extend/plugins/better-wordpress-syntax-based-on-geshi/&quot; target=&quot;_blank&quot;&gt;Better WordPress Syntax Highlighter&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/8215028868441726429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2013/05/syntax-highlighter-wp-plugin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/8215028868441726429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/8215028868441726429'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2013/05/syntax-highlighter-wp-plugin.html' title='Syntax Highlighter wp plugin'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-2507381566194442472</id><published>2013-05-04T12:04:00.001+06:00</published><updated>2013-05-04T12:04:13.416+06:00</updated><title type='text'>Query multiple/duplicate meta_key values</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;pre&gt;
SELECT $wpdb-&gt;posts. *
FROM $wpdb-&gt;posts, $wpdb-&gt;postmeta
WHERE $wpdb-&gt;posts.ID = $wpdb-&gt;postmeta.post_id
AND $wpdb-&gt;postmeta.meta_key = &#39;productcode&#39;
AND $wpdb-&gt;posts.post_status = &#39;publish&#39;
AND $wpdb-&gt;posts.post_type = &#39;post&#39;
AND $wpdb-&gt;posts.post_date &lt; NOW( )
AND $wpdb-&gt;postmeta.meta_value = $wpdb-&gt;postmeta.meta_value
GROUP BY $wpdb-&gt;postmeta.meta_value
HAVING count( * ) &gt;1
ORDER BY $wpdb-&gt;posts.post_date DESC

&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/2507381566194442472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2013/05/query-multipleduplicate-metakey-values.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/2507381566194442472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/2507381566194442472'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2013/05/query-multipleduplicate-metakey-values.html' title='Query multiple/duplicate meta_key values'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-6732526406600555029</id><published>2013-04-13T13:46:00.002+06:00</published><updated>2013-04-13T13:47:24.112+06:00</updated><title type='text'>How to install and configure Apache,PHP,MySql and phpMyadmin on ubuntu</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;a href=&quot;http://connectwww.com/how-to-install-and-configure-apachephpmysql-and-phpmyadmin-on-ubuntu/727/&quot;&gt;http://connectwww.com/how-to-install-and-configure-apachephpmysql-and-phpmyadmin-on-ubuntu/727/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/6732526406600555029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2013/04/how-to-install-and-configure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/6732526406600555029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/6732526406600555029'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2013/04/how-to-install-and-configure.html' title='How to install and configure Apache,PHP,MySql and phpMyadmin on ubuntu'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-1062074481198166337</id><published>2013-02-25T12:37:00.000+06:00</published><updated>2013-02-25T12:37:04.749+06:00</updated><title type='text'>Clean up your WordPress database from weird characters</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre&gt;Here is a query that you can run in order to clean your database from weird characters&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;UPDATE wp_posts SET post_content = REPLACE(post_content, &#39;â€œ&#39;, &#39;“&#39;);
UPDATE wp_posts SET post_content = REPLACE(post_content, &#39;â€&#39;, &#39;”&#39;);
UPDATE wp_posts SET post_content = REPLACE(post_content, &#39;â€™&#39;, &#39;’&#39;);
UPDATE wp_posts SET post_content = REPLACE(post_content, &#39;â€˜&#39;, &#39;‘&#39;);
UPDATE wp_posts SET post_content = REPLACE(post_content, &#39;â€”&#39;, &#39;–&#39;);
UPDATE wp_posts SET post_content = REPLACE(post_content, &#39;â€“&#39;, &#39;—&#39;);
UPDATE wp_posts SET post_content = REPLACE(post_content, &#39;â€¢&#39;, &#39;-&#39;);
UPDATE wp_posts SET post_content = REPLACE(post_content, &#39;â€¦&#39;, &#39;…&#39;);

UPDATE wp_comments SET comment_content = REPLACE(comment_content, &#39;â€œ&#39;, &#39;“&#39;);
UPDATE wp_comments SET comment_content = REPLACE(comment_content, &#39;â€&#39;, &#39;”&#39;);
UPDATE wp_comments SET comment_content = REPLACE(comment_content, &#39;â€™&#39;, &#39;’&#39;);
UPDATE wp_comments SET comment_content = REPLACE(comment_content, &#39;â€˜&#39;, &#39;‘&#39;);
UPDATE wp_comments SET comment_content = REPLACE(comment_content, &#39;â€”&#39;, &#39;–&#39;);
UPDATE wp_comments SET comment_content = REPLACE(comment_content, &#39;â€“&#39;, &#39;—&#39;);
UPDATE wp_comments SET comment_content = REPLACE(comment_content, &#39;â€¢&#39;, &#39;-&#39;);
UPDATE wp_comments SET comment_content = REPLACE(comment_content, &#39;â€¦&#39;, &#39;…&#39;);&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/1062074481198166337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2013/02/clean-up-your-wordpress-database-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/1062074481198166337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/1062074481198166337'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2013/02/clean-up-your-wordpress-database-from.html' title='Clean up your WordPress database from weird characters'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-1570844644468767905</id><published>2013-02-19T14:08:00.000+06:00</published><updated>2013-02-19T14:08:27.997+06:00</updated><title type='text'>How to remove shortcode from home but not from the entire blog</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Just paste the code to your function.php to remove the shortcode value 
from index.php or home.php but not from the rest of your template&lt;br /&gt;
&lt;pre&gt;function wpc_no_shortcode_home($content) {
    if ( is_home() ) {
      $content = strip_shortcodes( $content ); 
   }    
return $content;  
}  
add_filter(&#39;the_content&#39;, &#39;wpc_no_shortcode_home&#39;);&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/1570844644468767905/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2013/02/how-to-remove-shortcode-from-home-but.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/1570844644468767905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/1570844644468767905'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2013/02/how-to-remove-shortcode-from-home-but.html' title='How to remove shortcode from home but not from the entire blog'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5400190697732375451.post-4721076426706578789</id><published>2013-01-20T17:44:00.001+06:00</published><updated>2013-01-20T17:44:23.979+06:00</updated><title type='text'>How to remove the “/blog/” from your WordPress Multisite url slug</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Go to /wp-admin/options-permalink.php page and remove $blog_prefix = &#39;/&#39;; and save the page. &lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://h20bikash.blogspot.com/feeds/4721076426706578789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://h20bikash.blogspot.com/2013/01/how-to-remove-blog-from-your-wordpress.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/4721076426706578789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5400190697732375451/posts/default/4721076426706578789'/><link rel='alternate' type='text/html' href='http://h20bikash.blogspot.com/2013/01/how-to-remove-blog-from-your-wordpress.html' title='How to remove the “/blog/” from your WordPress Multisite url slug'/><author><name>Jibon Bikash Roy</name><uri>http://www.blogger.com/profile/06285299129776024835</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>