can’t access dashboard and showing forbidden page

Here is the short sweet answer. Somewhere you, a plugin, or your theme are doing something like this: wp_register_script( ‘myscript’, get_template_directory_uri() . ‘/path/to/myscript.js’, ”, ”, true ); What should be happening is this: add_action( ‘wp_enqueue_scripts’, function() { wp_register_script( ‘myscript’, get_template_directory_uri() . ‘/path/to/myscript.js’, ”, ”, true ); } ); From the Notice: Scripts and styles should … Read more

How to change value of $menu_class in ep_nav_menu?

There is no need to add any code for this. You can use the Screen Options on the menu admin end to achieve this. Please check the instructions below. Login to the admin end of your wordpress site and navigate to Appearance => Menus section. Click the down arrow against the menu item you need … Read more

fire action when post is being edited as well as saved?

The documentation for the save_post action says: save_post is an action triggered whenever a post or page is created or updated, which could be from an import, post/page edit form, xmlrpc, or post by email. So, you should only need the save_post action to run the desired code when the post is changed.

Removing action from template class

include TEMPLATEPATH.”/inc/settings.php”; is your problem. TEMPLATEPATH is used by the parent theme For child themes use STYLESHEETPATH so your code will be include STYLESHEETPATH.”/inc/settings.php”; Alternatively you can use get_stylesheet_directory_uri().’/inc/settings.php’

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