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.
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)
Dieses Thema enthält 4 Antworten, hat 2 Stimmen.
Zuletzt aktualisiert von vor 4 Jahren.
Assistiert von: Shane.