Skip to content
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.

Media Handling Filter parameters

johnbintz edited this page Sep 13, 2010 · 1 revision

These work the same as WordPress permalink definitions, and create a string that is glob()bable

%wordpress%/%type-folder%/%date-Y-m-d%*

when used to request the comic image for a post dated 2010-01-01 may look like this when resolved:

/var/www/mysite/comics/2010-01-01*

  • %wordpress% – The WordPress ABSPATH
  • %type-folder% – The requested comic image type’s folder. In ComicPress 2.9, these are defined in comicpress-options.php as: $comic_folder, $archive_comic_folder, $rss_comic_folder, and $mini_comic_folder.
  • %date-(.*)% – The date of the post being used in the query and run through the date() function. The part after date- is the input to date(), so %date-Y-m-d% calls date('Y-m-d', strtotime($post->post_date))
Clone this wiki locally