Directory

Parameter `search_columns` for `WP_Query` is not documented · Issue #1384 · WordPress/Documentation-Issue-Tracker · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter search_columns for WP_Query is not documented #1384

Open
crstauf opened this issue Dec 5, 2023 · 2 comments
Open

Parameter search_columns for WP_Query is not documented #1384

crstauf opened this issue Dec 5, 2023 · 2 comments
Labels
[Status] To do Issue marked as Todo

Comments

@crstauf
Copy link

crstauf commented Dec 5, 2023

Issue Description

In WordPress 6.2, the parameter search_columns was added to WP_Query, which allows the query to specify the columns to search. This parameter is not mentioned in documentation, but it should be.

URL of the Page with the Issue

https://developer.wordpress.org/reference/classes/wp_query/#search-parameters

Section of Page with the issue

Parameters > Search Parameters

Why is this a problem?

Documentation should be thorough and helpful: wanting to specify columns to search is a common request.

Ex: https://wordpress.stackexchange.com/questions/417138/how-to-use-wp-query-to-search-for-posts-where-post-content-or-post-title-or-post/417139

Suggested Fix

Add documentation for the search_columns parameter to the Search Parameters section of WP_Query class.

@crstauf crstauf added the [Status] To do Issue marked as Todo label Dec 5, 2023
Copy link

github-actions bot commented Dec 5, 2023

Heads up @WordPress/docs-issues-coordinators, we have a new issue open. Time to use 'em labels.

@crstauf
Copy link
Author

crstauf commented Dec 6, 2023

Hmm; search_terms/sentence should also probably be added to documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] To do Issue marked as Todo
Projects
None yet
Development

No branches or pull requests

1 participant