How to edit bbPress template files – WordPress + BuddyPress + bbPress? [closed]

I have found the answer for myself actually. Yes, I love the fact that bbPress is not obtrusive! It almost doesn’t matter at all how I am trying integrate BuddyPress here. So this narrow downs to customise bbPress template when installed as a plugin to WordPress. The answer is here: http://codex.bbpress.org/legacy/step-by-step-guide-to-creating-a-custom-bbpress-theme/ Thanks for Zaerl on … Read more

Any walker causes blank menu?

You need to make sure your menu is properly registered in your functions.php and then activated in the WP Dashboard. add_action( ‘init’, register_nav_menu( ‘navigation’, __( ‘Navigation’ ) ) ); Otherwise I was just facing a long list of empty bullet points. http://codex.wordpress.org/Navigation_Menus

Adding customizer styles with wp_add_inline_style

You can try to detect if the current used theme is a child and if so pointing the inline CSS to the right style. I didn’t tested this solution but could be a good starting point. function mytheme_enqueue_style() { wp_enqueue_style( ‘parent-theme-style’,get_template_directory_uri() . ‘/style.css’, false ); if(is_child_theme()) { wp_enqueue_style( ‘child-theme-style’, get_stylesheet_directory_uri() . ‘/style.css’, array(‘parent-theme-style’) ); } … Read more

How do I show sticky posts on a static front page that also contains content?

Something like this should work: $sticky = get_option( ‘sticky_posts’ ); if ( !empty( $sticky ) ) { // don’t show anything if there are no sticky posts $args = array( ‘posts_per_page’ => -1, // show all sticky posts ‘post__in’ => $sticky, ‘ignore_sticky_posts’ => 1 ); $query = new WP_Query( $args ); if ( $query->have_posts() ) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)