Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

New answers tagged

1 vote
Accepted

Post and page content not displaying in search results

The problem in your code is that your function is only returning the content when is_page() is true, which is not on the default search results page, where is_search() is true. Likewise, the content ...
user avatar
  • 31.6k
0 votes

How to search for (partial match) display names of WordPress users?

If you are using simpler get_user() function, you can use the following code: $users = get_users(array('search' => '*'.esc_attr( $search_string).'*'));
user avatar
0 votes

post_type incorrect for custom post type

Adding another possible solution for anyone else struggling with this. Removing the category of the post from the permalink - e.g. setting wordpress to use ONLY the post name - will cause this ...
user avatar
0 votes

Search for posts based on their url in the admin?

Or you can go to your mysql database ,Use the search option to find for wp_posts posts table in the column post_name And perform a search! Screenshot :https://prnt.sc/SDQ3QZL1kyZ1 😊
user avatar

Top 50 recent answers are included