Cannot get user’s ACF data when using a template part in a WP_User_Query

You need to pass the variables to the template using the 3rd parameter of get_template_part: get_template_part( string $slug, string|null $name = null, array $args = array() ): void|false https://developer.wordpress.org/reference/functions/get_template_part/ For example: https://developer.wordpress.org/reference/functions/get_template_part/#comment-4130 Note: This was added in WordPress v5.5

wp-admin/admin-ajax.php 400 Bad request (chrome console)

To simplify your process and prevent redundant conditional checks just stack the two actions on top of each other. wp_ajax_ runs for authenticated users and thus does the conditional check of is_user_logged_in() anyway. wp_ajax_nopriv_ does the same thing, but looks for unauthenticated users. The actions themselves run the conditions anyway, so you needn’t run it … Read more

error code: 523