New custom nev not working [closed]

Based on the code you’ve shown, the main problem is this: bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/rebons’ ) ); Should be this: bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/plugins’ ) ); The way you are adding the nav tabs may also be a problem. Here is a gist that might help. I have created a file ribbons.php according to profile.php … Read more

Conditional tags or Multiple files

Before I start, and before you continue reading the rest of the post, make sure to check my answer regarding templates in WordPress index.php is not loaded for single posts Now that you understand that all templates, except index.php, are only nice-to-have templates, lets continue. ….notice that multiple files with little differences are preferred over … Read more

Problem when linking out to separate file within foreach loop

As far I’ve known get_template_part() function does not work with foreach loop. So we need to use locate_template() function to this case. This is your customized category template code. Put it there – <?php /** * Category Template: Custom */ get_header(); ?> <div id=”content” class=”site-content container <?php echo codilight_lite_sidebar_position(); ?>”> <div class=”content-inside”> <div id=”primary” class=”content-area”> … Read more

Customize profile.php

There are probably several options to achieve your goal, below is one of the options shown by me. (these 2 functions belong to each other) Please make always a copy of functions.php before you start to edit/add a plugin or other code snippet. /** * Remove fields from an user profile page for all except … Read more

include ‘wp_enqueue_scripts’ (CSS) to multiple templates

Page template seems like a more obscure thing to base the loading of your CSS on. Maybe not use template name, and use page name instead as it’s more apparent to theme users. If interested you could try something more like this: add_action(‘wp_enqueue_scripts’, ‘load_special_page_styles’); function load_special_page_styles() { global $post; if( is_page() ) { switch( $post->post_name … Read more

the_excerpt producing empty output

Does the_excerpt() work if you remove the custom functions you have? Firstly, for sanities sake to make sure the excerpt has a value, could you try replacing your current excerpt call with this? <?php echo get_post_field(‘post_excerpt’, $post->ID); ?> If it does work then the problem is most likely related to your custom functions.

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