WordPress codex for page
How to get the current page slug?
global $post; $slug = get_post( $post )->post_name;
How to add rtMedia custom settings just like the example image above? Just add the codes to your functions.php of your theme. add_filter( 'rtmedia_add_settings_sub_tabs', 'wdes_music_rtmedia_pro_settings_tabs_content' ); function wdes_music_rtmedia_pro_settings_tabs_content( $tabs ){ $tabs[] = array( 'href' => '#rtmedia-music-genre', 'icon' => 'dashicons-admin-tools', 'title' => esc_html__( 'Music Genre' ), 'name' => esc_html__( 'Music Genre' ), 'callback' => 'wdes_music_genre_settings_callback', );…
Having trouble with this error message anywhere in your WordPress dashboard? Warning: htmlspecialchars(): charset `UTF-7' not supported, assuming utf-8 Inside WordPress admin dashboard go to “Setting > Reading” and here you see some field says ‘ utf-7 ‘. Changed this to ‘ utf-8 ‘ and everthing will be alright. Have a WordPress day.
The7 pagination in custom WP_Query, just copy the code below and paste it in your functions.php. dt_paginator( $query, array( 'class' => 'paginator no-ajax', 'ajaxing' => false ) ); [php] Example: [php] $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $args = array( 'cat' => '8', 'posts_per_page' => 8, 'paged' => $paged ); $query =…
Visit my demo page HTML CODE: <div id="prev-next" class="clearfix"> <a class="page-numbers" href="http://example.com/category/blog/">1</a> <a class="page-numbers" href="http://example.com/category/blog/page/2/">2</a> <a class="page-numbers" href="http://example.com/category/blog/page/3/">3</a> <a class="page-numbers" href="http://example.com/category/blog/page/10/">4</a> <a class="page-numbers" href="http://example.com/category/blog/page/10/">5</a> </div> SCRIPT $('a.page-numbers').live( 'click', function(e){ e.preventDefault(); $( '#loading' ).show(); var link = $( this ).attr( 'href' ); $( '#loop' ).animate({ opacity:0.1 }, 200, function(){ $( this ).load( link + ' #loop',…
Disable safari select fields css to avoid unparalleled height of your form fields. select { -webkit-appearance: none; }
Catchable fatal error: Argument 1 passed to Genesis_Admin_CPT_Archive_Settings::__construct() must be an instance of stdClass, instance of WP_Post_Type given, called in /home/…/wp-content/themes/genesis/lib/admin/menu.php on line 122 and defined in /home/…/wp-content/themes/genesis/lib/admin/cpt-archive-settings.php on line 38 This error is sometimes showing after updating the WordPress. It is advice to update your Genesis theme first before the WordPress. To fix this…