- This topic has 7 replies, 2 voices, and was last updated 6 years ago by Tom.
June 19, 2015 at 5:48 pm #115655Chris
I would like to display the “Edit” link/option right below a post header to the right of the Date and Author name for easier access to edit each post for logged in admins and users.
Previous themes I’ve used displayed the “Edit” option in that spot by default.
Currently the Edit link/option shows up (at the bottom of an individual post) only when a logged in user clicks and displays each individual post.
What’s the easiest and least disruptive way to accomplish this?June 20, 2015 at 12:10 am #115706TomLead DeveloperLead Developer
What about for pages, where there’s no author/date entry?
Personally, I think the edit link is kind of redundant – the admin bar at the top of the screen has an edit page link, which is always present no matter where you are on the screen.
You can always overwrite the generate_posted_on() function to include the edit link, but I’m not sure it’s completely worth it?
Let me know 🙂June 20, 2015 at 10:02 am #115752Chris
It’s actually worth it because it makes it easier to edit specific posts (useful when there are multiple contributors and an admin or editor needs to adjust and edit style, content, or image formatting/placement on multiple posts).
In blog summary view mode (index.php) you can easily scroll to view the posts and click “Edit” to immediately go edit that post.
The current way you have to scroll, then click on the post title, and then click the “Edit Post” option in the WP admin bar. Those extra clicks can really add up over time. 🙂
Any help on implementing this with minimal core file disruption will be appreciated. 🙂June 20, 2015 at 11:34 pm #115830TomLead DeveloperLead Developer
Not 100% sure it will work, but worth a shot.
Try this function: https://gist.github.com/generatepress/00cfa69e677dd47dcfdeJune 21, 2015 at 3:33 pm #115917Chris
Thanks. I’ll try it out.
I think you mean this for Adding PHP: http://generatepress.com/knowledgebase/adding-php-functions/ 🙂June 21, 2015 at 11:04 pm #115949TomLead DeveloperLead DeveloperAugust 1, 2016 at 5:51 pm #214620Chris
Worked like a charm! Thank you!August 1, 2016 at 11:26 pm #214685
- You must be logged in to reply to this topic.