Support

Account

Home Forums General Issues List files of a particular directory as options in admin

Unread

List files of a particular directory as options in admin

  • Hi,
    The website I’m building is quite modular. I use a lot of ‘get_template_part()’ to get little snippets of code.
    I’ve organised those snippets in separate .php files in one of the directories.

    Is there a way of listing the directory content and use it as options in ACF to choose from. For example as a selection what to include in a sidebar?

    Hope it makes sense. Thank you

Viewing 1 post (of 1 total)

The topic ‘List files of a particular directory as options in admin’ is closed to new replies.