Chapter E: Archive File Path Specifiers
Archive File Path Specifiers
The following are the recognized specifiers to create a "custom" Archive File Path on the weblog Publishing settings page.
In some cases shown below, uppercase variants exist and used to produce an alternate/shorter version of the value returned by the lowercase code letter.
%aThe entry's author's display name passed through the
dirifyglobal filter. Example:melody_nelson%-aThe same as above except using dashes. Example:
melody-nelson%bFor individual archive mappings, this returns the basename of the entry. By default, this is the first thirty characters of an entry dirified with underscores. It can be specified by using the basename field on the edit entry screen. Example:
my_summer_vacation%cThe entry's primary category/subcategory path passed through the
dirifyglobal filter. Example:arts_and_entertainment/tv_and_movies%-cSame as above but using dashes. Example:
arts-and-entertainment/tv-and-movies%CThe entry's primary category label passed through the
dirifyglobal filter. Example:arts_and_entertainment%-CSame as above but using dashes. Example:
arts-and-entertainment%d2-digit day of the month. Example:
09%D3-letter language-dependent abbreviation of the week day.
Tue%eA numeric entry ID padded with leading zeroes to six digits. Example:
000040%EThe entry's numeric ID. Example:
40%fArchive filename with the specified extension. This can be used instead of %b or %i and will do the right thing based on the context. Example:
entry_basename.htmlorindex.html%FSame as above but without the file extension. Example:
filename%h2-digit hour on a 24-hour clock with a leading zero if applicable. Example:
09for 9am,16for 4pm%H2-digit hour on a 24-hour clock without a leading zero if applicable. Example:
9for 9am,16for 4pm%iThe setting of the IndexBasename configuration directive with the default file extension appended. Example:
index.html%ISame as above but without the file extension. Example:
index%j3-digit day of year, zero-padded. Example:
040%m2-digit month, zero-padded. Example:
07%n2-digit minute, zero-padded. Example:
04%s2-digit second, zero-padded. Example:
01%xFile extension with a leading dot (.). If a file extension has not been specified a blank string is returned. Example:
.html%y4-digit year. Example:
2005%Y2-digit year with zero-padding. Example:
05


