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

Load an url with minimal/no DB queries

It is excruciatingly painful to deeply customize WordPress load process. It’s not quite clear if your requirements here are performance related or tied to soemthing else. For your question as stated there would be about following approaches (madness ascending): get rid of actual code causing unwanted queries, altogether or via techniques like caching customize the … Read more

Load specific page template based on URI

If you can count on the URI always following the same pattern, e.g. /link/###, then you can selectively load a different template using a query variable and a rewrite (will need to flush rewrites to test): /** * Register a query variable to check against for loading a template. * * @param array $vars Registered … 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

How do i change page template in bulk?

Try something like this: $pages = get_posts(); $page_ids_to_swap_the_template = array( 1, 2, 3, etc… ); foreach ( $pages as $page ) { if ( in_array( $page->ID, $page_ids_to_swap_the_template ) ) { update_post_meta( $page->ID, ‘_wp_page_template’, ‘new_template.php’ ); } }

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