Tell us what you are trying to do?
I was trying to use the wpv–conditional shortcode inside a post. But apparently that is only possible inside a view, template or archive. Is there a way to display post fields/post metas conditionally inside a post?
Is there any documentation that you are following?
Hi Waqar, thanks for your reply. I can confirm that it works in the post's content. Now we tried to use it inside a custom layout hook with astra theme (hidden link). This astra custom layout hook can then dynamically be inserted in the desired post's content (which is a really nice feature of the astra theme). Unfortunately that doesn't work in conjunction with the wpv-conditional tag. It seems the wpv-conditional shortcode fires too early. That's why the wpv-conditional tries to check the astra custom layout hook instead of the post where the custom layout hook is inserted. Other shortcodes like [wpv-post-title] do work inside astra custom layout hooks. Do you have any idea how to get to work the [wpv-conditional] too?
I don't have much experience with the 'custom layout hook' feature from Astra, but their documentation mentions that the execution priority can be adjusted: hidden link
Can you test by increasing the priority number, to further delay the execution?