Build Your Course The Easy Way
Get Started Free

post

The liquid object `post` returns information about your current Post.

In this article:


    post.id

    Returns the unique id for the current Post.

    <p>This Post's id is {{ post.id }}.</p>

    post.title

    Returns the Title for the current Post.

    <p>You're currently viewing {{ post.title }}.</p>

    post.body

    Returns the Body for the current Post.

    {{ post.body }}

    post.product

    This calls the parent Product of the current Category, allowing you to call any of the drops associated with product. Click here to view the drops available for product.

    <p>{{ post.product.title }}</p>

    post.category

    This calls the parent Category of the current Product, allowing you to call any of the drops associated with category. Click here to view the drops available for category.

    <p>This Post is part of {{ post.category.title }}.</p>

    post.url

    Returns the url for the current Product.

    <a href="{{ post.url }}">Current Post</a>

    post.posterimageurl

    Returns the URL for the Poster Image uploaded to the current Post.

    <img src="{{ post.poster_image_url }}">

    post.commentsmodevisible?

    Returns a boolean for whether or not the Comments Mode is set to 'Visible' for the current Post.

    {{ post.comments_mode_visible? }}

    post.commentsmodehidden?

    Returns a boolean for whether or not the Comments Mode is set to 'HIdden' for the current Post.

    {{ post.comments_mode_hidden? }}

    post.commentsmodelocked?

    Returns a boolean for whether or not the Comments Mode is set to 'Locked' for the current Post.

    {{ post.comments_mode_locked? }}

    post.comments

    Returns the collection of Comments in the current Post. This drop is most useful when paired with some of the filters and logic capabilities built in to Liquid.

    <p>There are {{ post.comments.size }} comments:</p>

    {% for comment in post.comments %} <h5>{{ comment.author.name }} says:</h5> <p>{{ comment.body }}</p> {% enfor %}

    post.video

    This calls the video drop for the current post. For more information on the video drop, click here.

    post.downloads

    Returns the collection of Downloads in the current Post. This drop is most useful when paired with some of the filters and logic capabilities built in to Liquid. For more information about downloads, click here.

    <p>There are {{ post.downloads.size }} downloadable attachments</p>

    <ul> {% for download in post.downloads %} <li><a href="{{ download.url }}">{{ download.display_name }}</a></li> {% endfor %} </ul>

    Contact support or access our 24/7 Live Chat:

    Contact Support Live Chat

    Need Help? Live Chat with Us.