• Resolved xsonic

    (@xsonic)


    Is it possible to mark a whole folder to be included?
    I want the complete /uploads/ folder to be copied.
    I tried different variantions but couldn’t get it to work.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Leon Stafford

    (@leonstafford)

    Hi @xsonic,

    Currently, this is possible, using the available hook:

    https://github.com/WP2Static/wp2static#modify-the-initial-list-of-urls-to-crawl

    And based on the example there, pass in a list of the public URLs of all the files in your uploads dir. This can be done by a custom function within your theme/child theme’s functions.php.

    I’m planning to add more options for folder/file selection via the GUI in an upcoming version.

    Please shoot me an email if you’re needing help with the custom function creation.

    Cheers,

    Leon

    Thread Starter xsonic

    (@xsonic)

    Thanks a lot, didn’t notice that there is documentation on github aswell.
    This is exactly what I needed.

    Imho a syntax like /wp-content/uploads/ or /wp-content/uploads/**/*.* or sth similar in the includes and excludes textboxes would be a great addition.

    Thanks a lot for the quick response, awesome plugin, I am impressed! ??

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi there,

    Closing this issue due to inactivity / assumed resolution. Please re-open to continue the discussion.

    You may also try an early development release of version 7, which brings a lot of fixes and some nice new features:

    https://www.ads-software.com/support/topic/version-7-early-development-release-available/

    Cheers,

    Leon

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Include complete folders’ is closed to new replies.