SQL order by fields
SELECT * FROM wp_posts WHERE ID IN (5,26,4) ORDER BY FIELD(ID,5,26,4)
Design WP Login landing page (wp-login.php, wp-login.php?action=lostpassword,etc.). I’d like to share some CSS code for you, you can enhance it on your own and this is just an example of mine. The 2 screenshot will be the layout output in WP login landing page. Copy the PHP code to your functions.php of your current WordPress…
Click every tab to get the sample options and se the screenshot image. [anton-accordion cat=”270″]
Copy the codes below to your functions.php add_filter('rtmedia_plupload_files_filter', 'rt_custom_allowed_types', 10, 1); function rt_custom_allowed_types( $types ){ global $bp; if ( $bp->current_component == 'activity' && isset( $types[0] ) && isset( $types[0]['extensions'] ) ) { $types[0]['extensions'] = 'jpg,jpeg,png,gif'; } return $types; } For more information please read this article https://rtmedia.io/docs/developers/allow-custom-media-types/
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">' ) );
jQuery( '.nav-primary .menu' ).children().each( function( index ){ jQuery( this ).children().not( 'ul' ).css({ 'float': 'left', 'padding-left': '0', 'padding-right': '0' }); }); jQuery( '.nav-primary .menu' ).css({ 'float': 'left' }); setTimeout( function(){ var wrap_width = jQuery( '.nav-primary .wrap' ).width(); var menu_width = jQuery( '.nav-primary .menu' ).width(); var remainder_width = parseInt( wrap_width ) – parseInt( menu_width ); var count_child…
How to fix “Warning: Cannot modify header information – headers already sent” error? Do have something like this error on your WordPress site? Warning: Cannot modify header information – headers already sent by (output started at /public_html/wp-content/themes/template/file.php:1) in /public_html/post.php on line 197 To fix this, I simply go to this folder directory “/public_html/wp-content/themes/template/” and find…