MB Views not showing external template files despite following docs

Support MB Views MB Views not showing external template files despite following docs

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #49322
    Michael KernMichael Kern
    Participant

    Reference to External template files section of Metabox Views documentation.

    I've tried all of these filters for getting MB Views to find my .twig files (and even tried the filesystem loader snippet) but MB Views does not list my .twig files from my /views subfolder. I also tried switching from get_template_directory() to get_stylesheet_directory() since my /views folder is saved in my child theme's folder. Still nothing shows in MB Views.

    What am I doing wrong?

    #49327
    PeterPeter
    Moderator

    Hello Michael,

    Thanks for reaching out.

    In the View editor, it doesn't support showing the external template files. You can include the external template when editing a view template. For example:

    {% include 'custom-template.twig' %}

    Following the documentation https://docs.metabox.io/extensions/mb-views/#using-external-views

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