Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Adam Bissonnette

    (@mmanifesto)

    Heya I’ve added a new version with this feature just for you. You can use the regexfilter parameter to exclude any filenames with “xyz” and then if you use the regexfilterinclusive parameter you can flip the behaviour so it only shows files that match.

    Here are some examples on my test site:
    https://mediamanifesto.com/skunkworks/file-list-tests/

    The readme was also updated with some examples but for your example specifically where you want to list all files contains “xyz” you can use the shortcode with parameters as follows:
    [MMFileList regexfilter=”/abc/” regexfilterinclusive=”1″ /]

    You can play around with regex formatting here to get a pattern that works for your use case:
    https://regex101.com/

    Or if you want to keep the discussion in the forums feel free to add another message and I will try to help as soon as I can ??

    Cheers and good luck!

    Thread Starter moonspie

    (@moonspie)

    Adam, THANKS!! This is exactly what I need.

    Also in my site I had to remove all the double quotation mark from the parameters for the add-in to work. I am not sure if it’s because I have a different version of WordPress? But anyway it works fine. I had a paid plug-in with similar function that crash my site and this Mmm Simple File List plug-in is simple, pure, and most importantly, super flexible. Love it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘filter files by name?’ is closed to new replies.