fix: update author actions shortcode to display on all pages#2999
Conversation
|
It does not make sense to show post author actions on all pages, so it was restricted to author page only. The option is still can be modified via hook |
|
That makes sense from a general perspective. The use case I had in mind is specifically for admins, they can't see other users' listings on the author page, so the Edit/Delete buttons are effectively invisible to them when browsing the frontend loop. The fix allows admin actions to appear wherever the card is rendered. To clarify the behavior: normal users will only see author actions on their own listings, not on all listings. Only admins see author actions on all listings. So there's no risk of exposing actions to the wrong user. This came from a real client concern, they expected to manage listings directly from the loop cards and couldn't figure out why the buttons weren't showing. |
|
I will add option to set 1 / 0 via widget/block setting. Meantime try following PHP code snippet. ` } Modifing by default will affect all our existing customers. |
|
Thanks for the snippet, I'll use it for the client in the meantime. And glad the widget/block setting is coming, that's the right way to handle it 👍 |
GD > Simple Archive Item: Author action buttons (Edit/Delete) appear in the editor but are hidden on the frontend archive loop.