WordPress is archive function
From Wiki @ Karl Jones dot com
Revision as of 17:42, 25 October 2016 by Karl Jones (Talk | contribs) (Created page with "In WordPress, '''is_archive''' is a WordPress function which test whether or not the current page is an Archive Page. == Description == An...")
In WordPress, is_archive is a WordPress function which test whether or not the current page is an Archive Page.
Description
An Archive is a Category, Tag, Author, Date, Custom Post Type or Custom Taxonomy based pages.
This is a boolean function, meaning it returns either TRUE or FALSE.
The function is used as a conditional WordPress Tag, like this:
<?php if ( is_archive() ) { // write your code here ... } ?>
See also
External links
- Creating an Archive Index @ codex.wordpress.org
- Building A Custom Archive Page For WordPress @ Smashing Magazine