mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Add a query var, `title`, that allows you to query posts by `post_title`. To accomplish this now, you have to do something like:
{{{
$tacos = get_posts( [
'post_type' => 'taco',
's' => $name,
'exact' => true,
'sentence' => true,
'post_status' => 'publish',
'fields' => 'ids',
'posts_per_page' => 1
] );
}}}
Adds unit tests.
Fixes #33074.
git-svn-id: https://develop.svn.wordpress.org/trunk@33706 602fd350-edb4-49c9-b593-d223f7449a82
|
||
|---|---|---|
| .. | ||
| conditionals.php | ||
| date.php | ||
| dateQuery.php | ||
| isTerm.php | ||
| metaQuery.php | ||
| parseQuery.php | ||
| postStatus.php | ||
| results.php | ||
| search.php | ||
| setupPostdata.php | ||
| stickies.php | ||
| taxQuery.php | ||
| verboseRewriteRules.php | ||