Edit page header on a custom plugin

NOTE This code will load those scripts on all admin pages. Better you go through the Codex examples to get an idea how you can load the scripts on pages of specific plugins Here’s the code to load the custom scripts on admin pages function wpse60745_loadto_admin() { // to load styles wp_register_style( ‘my_plugin_css’, plugins_url(‘plugin-style.css’, __FILE__) … Read more

Why is the `if else` not working?

Assuming you’re using the function is_category_or_sub() as given on http://valendesigns.com/wordpress/is-category-or-subcategory-wp-function/ That function takes category id as the argument, not the slug. The string “gamenews” here when type-casted to an integer becomes 0 which is an ancestor for every other category. Can you try changing the function code to this- // If is category or subcategory … Read more

Page header menu links change

Note that you’re using a Custom Nav Menu, meaning that the contents of the menu can be customized. The easiest solution is simply to: remove the current “Our Doctors” page from the menu add your desired page to the menu edit the menu item to change the displayed title to “Our Doctors” save the menu

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