Display Edit button for all posts i have permission to edit

Posted in: Newsmag
Post count: 93

I am the Admin and i only see the edit button on posts i am the author, It is very time consuming having to go to the dashboard every time something needs fixing. Please provide a way to make the edit button appear on all posts.

Post count: 93

I mean on single post by the way.

Post count: 9544

super user admin should be able to “edit” all posts. So, if you are logged in as the admin/super user, then you should see the ‘edit’ link (which is actually a WordPress function, not a theme function).

Codex docs
https://codex.wordpress.org/Function_Reference/edit_post_link

theme template simply adds the link which is managed by WordPress “user roles.”
e.g., <?php edit_post_link(); ?>

Post count: 93

Chris thanks for the snippet, i am confused by single.php where should i add this code for the edit button to appear on the “meta info” part of the post next to the “td-post-comments” div?

Post count: 6535

Hi

Are you referring at this option: http://screencast.com/t/Dr0PTvlUfW3J The admin bar it is a WordPress built-in functionality as @Chris suggested above. You can be enable the admin top bar from Users section: http://screencast.com/t/ucF03Am6lJ

Let me know how it goes and if this is not what you mean provide more details about what you’re trying to do.

Thanks!

Post count: 9544

For my suggestion – some themes have an [edit] button that appears at bottom of the post or below authorbox when logged int. I personally find that annoying, and it’s already in the black bar at top in WP, as Andrei pointed out ….

however, you *can* add that from the WordPress default function by simply putting it into the single post template(s) you are actually using, wither the main template or the loop template, and it should work. As with all these things, TRY IT, and if it doesn’t work for you REMOVE IT. “Trial and error” is how to learn to do most of this stuff. 🙂

Post count: 93

I used to disable the wordpress bar for everyone who isn’t admin but i guess i’ll just leave it there. thanks both.

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newsmag’ is closed to new topics and replies.