how to use php in custom toolbar form

One option you have is to use JS to create cookies that store the entered information. Here is an article that explains how to do this. The cookies will last even if a form fails to submit. Just make sure you delete the cookies after you use them. I believe it is a security risk … Read more

Signed-in as admin on just part of the site

I discovered that by adding a call to get_currentuserinfo(); in header.php the problem appears to be solved. I still do not know why it happened, but at least this is a working solution for anyone else who happens to have this problem. Note: Following @jgraup’s suggestion above, I’m posting this as an answer. However, I … Read more

Admin Bar items active only on plugin page

Figured it out function add_toolbar_items($admin_bar){ if(‘profile’ == get_post_type()) $admin_bar->add_menu( array( ‘id’ => ‘main-title’, ‘title’ => ‘Targeting’, )); } add_action(‘admin_bar_menu’, ‘add_toolbar_items’, 100);

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