Why isn't {{ post.excerpt }} showing up?

Support MB Views Why isn't {{ post.excerpt }} showing up?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #49492
    369cycle369cycle
    Participant

    Why isn't {{ post.excerpt }} showing up?

    #49500
    PeterPeter
    Moderator

    Hello,

    Thanks for reaching out.

    Do the posts have excerpt content? Can you please recheck this?

    #49501
    369cycle369cycle
    Participant

    This is my website: https://business.raina.com.tw/news/

    It displays excerpts correctly using normal PHP code!

    #49503
    PeterPeter
    Moderator

    Could you please edit a post in the first comment and share a screenshot of the post excerpt?

    #49507
    369cycle369cycle
    Participant




    Using shortcode without any custom arguments yields the same result. I believe the {{ post.excerpt }} is malfunctioning, even when I change the theme; the result remains the same.

    #49514
    PeterPeter
    Moderator

    Hello,

    I mean, the excerpt when you edit the post, please check this screenshot https://ibb.co/DDmpV8RD

    #49515
    369cycle369cycle
    Participant

    I'm using content to automatically scrape the content. When I use the <?php the_excerpt();?> tag, it also scrapes automatically, so I don't manually input excerpt. Could you tell me how to configure it to automatically scrape excerpt? This would be more user-friendly, as not many users would write an extra summary! It's all scraped from content.

    #49518
    PeterPeter
    Moderator

    Hello,

    If the post doesn't have the excerpt and you want to show the excerpt from the post content, you can use the code

    {{ mb.the_excerpt() }}

    use the proxy mb. to call a PHP function in the View editor. Following the documentation https://docs.metabox.io/extensions/mb-views/#running-php-functions

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.