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

https://github.com/wp-forge/wp-query-starts-with

A Composer package for WordPress that allows you to query posts based on what the title starts with.
https://github.com/wp-forge/wp-query-starts-with

Last synced: about 1 year ago
JSON representation

A Composer package for WordPress that allows you to query posts based on what the title starts with.

Awesome Lists containing this project

README

          

# WordPress Query Starts With


WordPress Versions


PHP Versions

A Composer package for WordPress that allows you to query posts based on what the title starts with.

## Installation

Install [Composer](https://getcomposer.org/).

In your WordPress plugin or theme directory, run:

```
composer require wp-forge/wp-query-starts-with
```

Make sure you have this line of code in your project:

```php
'post',
'starts_with' => 'Pre', // This is case-sensitive and must match the first part of the post title exactly.
// ...
)
);
```