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.
- Host: GitHub
- URL: https://github.com/wp-forge/wp-query-starts-with
- Owner: wp-forge
- Created: 2022-08-02T16:40:56.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-02T18:47:32.000Z (almost 4 years ago)
- Last Synced: 2025-02-14T08:37:37.751Z (over 1 year ago)
- Language: PHP
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# WordPress Query Starts With
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.
// ...
)
);
```