Advanced Post Creation Author field search does not work and only shows a limited user list

The Author field looks searchable, but typing does not work and only a small set of users appears.

In the Advanced Post Creation feed settings, the Author field appears to be searchable because it includes a text input and magnifying glass icon.

However, in my setup:

  • only a small number of users appear in the dropdown

  • typing in the field does not search or filter results

Can you clarify:

  1. Is the Author field supposed to be searchable?

  2. What determines which users appear in this list?

  3. Should all eligible WordPress users appear, or only certain roles/capabilities?

  4. If search is not supported, why does the field display like a searchable input?

This looks either like a bug or a misleading UI.

Hi Doug,

I’ve added 131 users (143 in total) to my sandbox website to reproduce the issue. Let me explain step by step:

  1. The author field is searchable; when you stop typing, it starts searching the database to pull the user (display name).
  2. By default, the first 10 users (in alphabetical order) are displayed in the Author dropdown menu.
  3. It looks like the user search is based on both username and display name.
  4. All registered users appear as you type, either by their username or display name.

If you’re having issues with the search option, there might be a conflict on your website.

You can refer to the article below to begin troubleshooting the issue. In summary, disable all third-party plugins and switch back to the “Twenty Twenty-Five” theme to see if the issue persists. If not, enable your plugins one by one to identify the cause.

Otherwise, open a support ticket here:

https://www.gravityforms.com/open-support-ticket/technical/

Thank you. I will see if there is a conflict.

Here are my findings in case anyone is having issues with this…

I’ve been investigating this issue and found the root cause. It’s a bug, not a site configuration issue.

The Author search field in the Advanced Post Creation settings page calls /wp-json/wp/v2/users?search=<query> using a plain fetch() request (in admin-components.min.js). The problem is it doesn’t include the X-WP-Nonce header that WordPress requires for authenticated REST API requests.

Here’s what happens:

  1. The browser sends the WordPress login cookie with the request automatically
  2. WordPress’s rest_cookie_check_errors sees a cookie but no matching nonce, and treats this as a potential CSRF attack
  3. WordPress deliberately downgrades the request to unauthenticated as a security measure
  4. An unauthenticated user doesn’t have the list_users capability, so the endpoint returns 401 rest_forbidden

The fix would be to use wp.apiFetch() instead of raw fetch() for this request — wp.apiFetch() automatically includes the nonce header. The APC add-on already creates a nonce for its own AJAX calls (gform_advancedpostcreation_author_search), but the Author dropdown is rendered by a shared GF core React component that bypasses this.

I confirmed this by running the same REST API query server-side as an authenticated admin — it returns results successfully. The endpoint itself works fine; it’s just the browser request that’s missing authentication.

Tested on GF 2.9.30 / APC 1.6.1. Reproduced on multiple sites.

1 Like

Hi @chrishajer
Could you please have a look?

@faisalahammad @chrishajer Is there any word on this? Thanks!

Hi Doug. I recommend opening a support ticket if you need assistance with this. Thank you.

https://www.gravityforms.com/open-support-ticket/technical/