html id is removed for non admin user?

simplest solution – set the post_author to an admin or editor user. The reason “id” and other attributes and tags are stripped from the content is to prevent unauthorized users to inject content which might be used to “still” the credentials of other users. Right now you don’t explicitly set the user to which the … Read more

how to remove +new from wp admin area

I think what you are asking is changing the text +NEW to ADD Deal. This code is adjusted like that. add_action( ‘admin_bar_menu’, ‘change_new_post_name’, 999 ); function change_new_post_name ( $wp_admin_bar ) { //Removing +New $wp_admin_bar->remove_node( ‘new-content’ ); //hyperlink for the new link. This can be anything. Currently it’s default. $link = get_bloginfo(‘url’).’/wp-admin/post-new.php’; //Parameters to create a … Read more

Getting rid of menu items on a custom taxonomy

This is not your code I suspect, as there are really many errors in your code. I’m going to list them Firstly, you are registering your custom post type inside a function that you hook to init, which is fine. Then you register your taxonomies outside that function. What the reason bhin that is, I … Read more

admin edit link from a specific page

I am not sure I completely follow your second example. You can use get_edit_post_link() template tag, which will output the link to admin side for the current post (only for users who can edit the post). If you just want pretty link for that there is no native way, but it looks similar to what … Read more

Other than save_post any other actions on add / edit post screen?

you can use load-{page-hook}. It is called prior to the admin screen loading. add_action( ‘load-post-new.php’, ‘post_listing_page’ ); function post_listing_page() { // ‘add new’ page, you may have to check post type.. } {page-hook} on the ‘add new’ page of any post type, it is post-new.php {page-hook} on the edit page of any post type, it … Read more

Black admin bar is being hidden by page elements

The styles for the admin bar are generally printed in the head of the site, so perhaps your CSS code is being undone as the printed styles for the admin bar appear after your included style sheet. Maybe by using the wp_head action you can stop this, placing something like this in your functions file … Read more

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