SQL order by fields
SELECT * FROM wp_posts WHERE ID IN (5,26,4) ORDER BY FIELD(ID,5,26,4)
Facebook Facebook Like Box Widget http://wordpress.org/plugins/facebook-like-box-widget/ Testimonials WP Customer Reviews https://wordpress.org/plugins/wp-customer-reviews/ Popup Cookie Cookie Control – http://wordpress.org/plugins/cookie-control/
{% if page.handle == 'sweet-dolls' %} {{ 'sweetdoll.css' | asset_url | stylesheet_tag }} {% endif %} {% if page.handle == 'tous-summer' %} {% section 'toussummer1' %} {% endif %} <script> var custom_timeout_function = ( function () { var timers = {}; return function (callback, ms, uniqueId) { if (!uniqueId) { uniqueId = "Don't call this…
How to check radio button if checked or not? if( $("input#myradio-id").is(":checked") ){ // IF CHECKED CODES }else{ // IF NOT CHECKED CODES } Navigation menu on-click prevent default if menu item has children and fires only on second click // OPTION 1 // JQUERY $( '.menu-item-has-children a' ).click( function(e){ $( this ).parent().toggleClass( 'active-li' ); if(…
Re-register the default genesis sidebar into your function.php. See the image above for html output. genesis_register_sidebar( array( 'id' => 'sidebar', 'name' => __( 'Primary Sidebar', 'genesis' ), 'before' => '<div id="%1$s" class="widget %2$s">', 'after' => '</div></div>', 'before_title' => '<h4 class="widget-title widgettitle">', 'after_title' => '</h4><div class="widget-inner">' ) );
Freelance tips, how to get paid from your clients? After closing a client, I always ask for a deposit and get paid upfront at least 40% of the total cost of the project. Why is that? 1. If the client does the deposit upfront, the project is real and not bullshit. The client is committed…
Remove subcategory count. add_filter( 'woocommerce_subcategory_count_html', function(){ return ''; }); Change the number of loop shop columns. add_filter( 'loop_shop_columns', function(){ $cat_obj = get_queried_object(); $cat_id = $cat_obj->term_id; if( get_woocommerce_term_meta( $cat_id, 'display_type', true )== 'subcategories' ){ return 3; }else{ return 4; } }); Change the number of loop shop columns css. Just add a class on the body…