Problem:
Allow users to see the edit link of their own posts.
Solution:
In order to achieve this you will need to make use of our conditional shortcode to wrap your edit link shortcode inside the conditional.
Here is the conditional below that you will need to use.
[wpv-conditional if="('[wpv-current-user info='id']' eq '[wpv-post-author meta='ID']')"] Edit Post link goes here [/wpv-conditional]
Essentially this is checking if the ID of the currently logged in user is the same as the author of the current post being viewed.
Once both IDs are the same then the text "Edit Post link goes here" will display. You will need to replace this text with the actual shortcode of the edit link.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Our next available supporter will start replying to tickets in about 0.91 hours from now. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 14:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Jamaica (GMT-05:00)
This topic contains 4 replies, has 2 voices.
Last updated by 3 years, 8 months ago.
Assisted by: Shane.