An open API service indexing awesome lists of open source software.

https://github.com/wpscholar/wp-context

A WordPress context library based on WordPress' built-in template hierarchy.
https://github.com/wpscholar/wp-context

wordpress wordpress-php-library

Last synced: 7 months ago
JSON representation

A WordPress context library based on WordPress' built-in template hierarchy.

Awesome Lists containing this project

README

          

# WordPress Context
A WordPress context library based on WordPress' built-in template hierarchy.

## What It Does
Designed to be used after the main WordPress query has run, this context library will return an array of slugs representing the current context.

## How to Use It

1. Add to your project via [Composer](https://getcomposer.org/):

```bash
$ composer require wpscholar/wp-context
```

2. Make sure you have added the Composer autoloader to your project:

```php