archives.php
Archive pages appearance.
Tags
Table of Contents
Functions
- modify_archive_order() : void
- Change sort order of archive pages where required.
- modify_archive_title() : string
- Remove prefix for taxonomy name from archive titles.
Functions
modify_archive_order()
Change sort order of archive pages where required.
modify_archive_order(WP_Query $query) : void
Do not change order on admin pages.
Parameters
- $query : WP_Query
-
The WP_Query instance(passed by reference).
Tags
modify_archive_title()
Remove prefix for taxonomy name from archive titles.
modify_archive_title(string $title, string $original_title, string $prefix) : string
Parameters
- $title : string
-
Archive title.
- $original_title : string
-
Archive title without prefix.
- $prefix : string
-
Archive title prefix.
Tags
Return values
string —The (maybe) modified archive title.