wp-forge/wp-query-starts-with
最新稳定版本:1.0
Composer 安装命令:
composer require wp-forge/wp-query-starts-with
包简介
A Composer package for WordPress that allows you to query posts based on what the title starts with.
README 文档
README
A Composer package for WordPress that allows you to query posts based on what the title starts with.
Installation
Install Composer.
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 require __DIR__ . '/vendor/autoload.php';
Usage
When creating a custom query:
<?php $query = new WP_Query( array( 'post_type' => 'post', 'starts_with' => 'Pre', // This is case-sensitive and must match the first part of the post title exactly. // ... ) );
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2022-08-02