Custom Fields
Re-Envisioned
Support MB Views Post Author Field not Listed

  • Creator
    Topic
  • #23652
    Resolved dmccan
    Participant

    Hi Meta Box Team,

    When creating a View for a Custom Post Type single, when I click the Insert Field button, I don’t see the author as a field that can be inserted. Is there a way to retrieve the post author? This did not work:

    {{ post.author }}

    Thank you,

    David

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #23653
    dmccan
    Participant

    This works: {{ mb.get_the_author() }}

    #23677
    dmccan
    Participant

    I expected the post Author fields in the Post Fields group, but found them in the User group via the drop down.

    #23682
    Long Nguyen
    Moderator

    Hi,

    In the View, we can click to the tab Insert Field > Tab User > User dropdown: Post Author > Then click the User options below: User ID, first name …

    Or use the mb. proxy to connect all supported template tags of WordPress and your custom function, see more in the documentation https://docs.metabox.io/extensions/mb-views/#running-php-functions.

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