=== Pinoydev Admin Post Author Search Filter ===
Contributors: pinoydev
Tags: author, filter, admin, posts, custom post type
Requires at least: 5.6
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds an author dropdown filter to WordPress admin post list screens.

== Description ==

Pinoydev Admin Post Author Search Filter adds a simple **All authors** dropdown to the top of WordPress admin list tables on `edit.php`.

Use it to quickly filter posts, pages, and custom post types by author — then click the existing **Filter** button to update the list.

**Features**

* Author dropdown on admin post list screens
* Lists post owners for the current post type (any user role, as long as they are the post author)
* Switches to AJAX author search automatically when more than 100 post owners exist (configurable in Settings)
* Works with posts, pages, and custom post types that support the `author` feature
* Settings page to choose AJAX search or plain HTML dropdown for large author lists
* Author column links open the WordPress user profile screen
* Uses native WordPress author query handling

**Why this plugin?**

WordPress does not always show a convenient author dropdown on every post list screen, especially for pages and custom post types. Older author-filter plugins on WordPress.org are no longer maintained. This plugin provides a focused, up-to-date solution.

== Installation ==

1. Upload the `pinoydev-admin-post-author-search-filter` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Go to **Posts → All Posts**, **Pages**, or any custom post type list screen that supports authors.
4. Choose an author from the dropdown and click **Filter**.
5. Optional: go to **Settings → Author Search Filter** to choose AJAX search or a plain dropdown for large author lists.

== Frequently Asked Questions ==

= Which screens does this work on? =

Any admin list table loaded from `edit.php` for a post type that supports authors.

= Does it work with custom post types? =

Yes, if the custom post type registers `author` support.

= Which users appear in the author filter? =

The filter shows WordPress users who are the post author on at least one item of the current post type. Role does not matter — if a subscriber, customer, or any other role is saved as the post author, they will appear. It does not list every user on your site, only users tied to posts of that type.

On large lists, the AJAX search can also match a username prefix (for example, "SU" finds "SUP") or an exact username even when that user has no posts of the current type. Choosing a user with no posts of that type and clicking Filter may show an empty list.

= What happens when there are many authors? =

If a post type has more than 100 post owners, the plugin uses AJAX search by default. Type a name or username, choose a result, then click Filter. You can switch to a plain HTML dropdown instead under **Settings → Author Search Filter**.

= Can I use a normal dropdown instead of AJAX search? =

Yes. Go to **Settings → Author Search Filter** and choose **Plain HTML dropdown**. This loads every post owner into a select menu, which may be slow on very large sites.

= Does this change what users can see on the front end? =

No. This only adds a filter dropdown in the WordPress admin area.

= Where can I get support? =

Use the WordPress.org support forum for this plugin, or email ulgasan491@yahoo.com.

== Changelog ==

= 1.0.2 =
* Add settings page to choose AJAX search or plain HTML dropdown when a post type has more than 100 post owners.
* Author column links now open the WordPress user profile screen instead of filtering the post list.

= 1.0.1 =
* Improved AJAX author search performance with cached post owner lists and lighter database queries.
* Fixed partial username matching in AJAX mode (for example, "SU" now finds "SUP").
* Added client-side caching for repeated author searches in the admin.

= 1.0.0 =
* Initial release.
* Author dropdown filter on admin post list screens for post types that support authors.
* Lists all post owners for the current post type, regardless of user role.
* AJAX author search when a post type has more than 100 post owners.
* Search by username, display name, first name, last name, or nickname.
* Author results shown as username - first last.
* Custom query parameter (`papasf`) for reliable custom post type filtering.

== Upgrade Notice ==

= 1.0.2 =
Adds settings for large author lists and links the author column to user profiles.

= 1.0.1 =
Faster AJAX author search and improved username matching.

= 1.0.0 =
Initial release.
