Skip to content
πŸŽ‰

Cyber Sale Blowout! Get 50% OFF β€” Limited Time Only!

Click to Save 50% (opens in a new tab)

How to use the Current Post ID in a Post Cards Meta Query

In this article

    When using the Post Cards element to display posts, you might want to show posts that are related based on a custom field, specifically, where the custom field value matches that of the currently displayed post.

    For example, imagine adding a related posts section in a dynamic template. You may want this section to display posts where the current post’s ID is included in a particular custom field value.

    To achieve this, you can use the current_post dynamic value, as shown in the screenshot below:

    Related Articles
    Back To Top