How To Add Post Edit Link Below Every Post of Your Website?
October 6th, 2016 | by Ravi Chahar || 4 Comments |
When you open any post of your while logging to WordPress admin panel, do you see an edit option below the post title? What would you do to add post edit link for all the posts if you won’t find it on your website?
It’s is possible that your WordPress theme doesn’t consist this feature to show the edit option. If not, then you have to add it manually using the WordPress function.
In this tutorial, I will walk you through the process to add post edit link below the title so that you would be able to edit any blog post.
No one wants to search for the post in the WordPress, it’s great just to click on the “edit” option below the post title and reach to the WordPress post editor.
Add Post Edit Link For Posts To Improve Users’ Experience.
While developing a WordPress theme, a developer should take care of the user. He/she should try to manage the things with the proper code and the easy handling options.
Let me provide you the code.
Add this code in the single.php file of your theme below the post title or wherever you want to show this option. You can show this option in the same paragraph of the author name and the date.
NOTE:- This option will be visible only to the website owner after logging to the WordPress admin panel.
There are many parameters you can pass along with this. After adding this code, you will see the “Edit this” link below each post.
If you want to change the default text then you can pass the parameter.
This will only show “Edit” in place of “Edit this“. It’s your choice whether you want to keep the default edit text of want to use your own.
The above code will show the date, author, and the post edit link.
Though most of the developers like to keep it below the post title but still if you want to use it anywhere else then you can.
I Hope Now You can Add Post Edit Link To Your WordPress Website?
Just one line of the code would do the work. You just have to use the WordPress function mentioned above. As I have mentioned above, the parameters can be passed but still, default one won’t hurt you.
There are many parameters other than changing the default edit text. But for the perfect solution, it’s more than enough. If you still want to know more then I can help you.