Similar Posts
Add extra body classes
# BODY CLASS ADD ONS add_filter('body_class', 'extra_body_class'); function extra_body_class($classes) { global $wp_query; // Add current slug on body class $current_id = $wp_query->post->ID; $post = get_post($current_id); $slug = $post->post_name; $classes[] = 'body-'.$slug; $classes[] = sanitize_html_class( str_replace( '.', '-', get_page_template_slug( $current_id ) ) ); return $classes; }
How to create a new Buddypress menu item in profile page?
Copy this code to your functions.php file add_action( 'bp_setup_nav', 'wdes_bp_add_nav_item', 100 ); function wdes_bp_add_nav_item(){ // Add music page in my profile menu item bp_core_new_nav_item( array( 'name' => 'My Music', 'slug' => 'my-music', 'default_subnav_slug' => 'sub-music', 'screen_function' => 'my_music_screen_function', 'show_for_displayed_user' => true, 'position' => 160 ) ); // Add upload music page in my profile menu…
Genesis category hook and customization’s
Get Header Title function custom_category_page_title() { global $wp_query, $wpdb; $category_ = get_query_var('cat'); $current_cat = get_category ($category_); $category_id = $current_cat->term_id; echo '<header class="entry-header">'; echo'<h1 class="entry-title" itemprop="headline">'.get_cat_name( $category_id ).'</h1>'; echo '</header>'; }
Warning: rmdir( … ), No such file or directory
Warning: rmdir( … ), No such file or directory Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/username/public_html/wp-includes/meta.php on line 1078 You might interested to check this error master Gravity Forms Media Upload Field for BuddyPress Complete Tutorial Also offering hosting and domain registration, chep but trusted –…
How to get the parameter value or key value on the the window location (page URL)?
How to get the parameter value or key value on the the window location (page URL)? If you have this URL “examplesite.com/?debug=1” and thinking how to get the value of debug parameter, the codes below is the answer. jQuery( document ).ready( function($){ // Example URL is examplesite.com/?debug=1 var getPostValue = function getPostValue(key) { var pageURL…
Lorem Ipsum text
Lorem ipsum dolor sit amet, ferri oratio definitiones ei vim. Mea ei nulla noluisse dissentiunt, id dicat nominati repudiare usu. Nam maluisset consulatu gubergren cu, falli praesent vis ea. Indoctum deseruisse quo ne, pro ex lorem ancillae accusamus. Usu conceptam maiestatis at. Mei semper docendi concludaturque id. An vix paulo urbanitas consetetur. Rebum impedit an…


Many thanks if you are so kind to fairly share this information.