In ACF for Authors, you need to supply the author in 'user_'.$user_id
format.
Which would be this:
echo get_field( 'students_no_class', 'user_'. get_queried_object()->ID );
or this:
the_field( 'students_no_class', 'user_'. get_queried_object()->ID );
Related Posts:
- Publish author posts only with editor approval?
- Set a User as Author of all ‘New Posts’ posted
- Having Multiple authors for the same WordPress Plugin
- How to develop a community feature in the dashboard for multiauthor site
- Change destination author link
- Don’t send notification if author comments his own post plugin help?
- wordpress plugin that show my reputation (points) in any stackexchange project in my wordpress blogs
- Improving a Stackoverflow “inspired” badge system to display badges in author page
- Get total number of comment of the posts written by an author
- Not getting author rank when using return
- Custom post type – no layout section of Document tab, and no author choice
- Modifying Author Link to add Author Meta in URL
- How to set add question capability for author role in wp pro quiz plugin
- Automatically Assign Author to Category [closed]
- Co-Authors Plugin Displaying Wrong Author
- Change get_current_user_id code to the author’s profile
- Can I put in Github the code of a abandoned plugin I want to fork?
- Show author on every sub-page
- Woocommerce: limit user to see only the products he created
- OceanWP settings are missing from Add New Post [closed]
- how to add custom info on author page? plugin, child theme?
- Individual Comment Notification Setting For Post Author
- Personalized Author Area
- how can authors to define custom pages?
- Is there a way to input different rel=author and rel=publisher attributes for a WP blog w/ multiple authors?
- How can i list random author?
- Author & date removal
- Adding plugin editing capability for Author
- co-authors plugin – inline listing
- Display Author name PHP (Selfmade Plug-IN)
- Co-author plus: list of posts by authors in the sidebar
- Changing author slug for a custom role without using plugin
- Remove dashboard links from wordpress
- How to get the total count of Favorite/Favorited authors
- how to show Author group not Author name
- How to prevent authors from editing their post count?
- Displaying friend’s posts only
- How to show author’s avatar in the post meta data with plugin `user-avatar`
- Unfortunately removed myself as plugin committer
- Check if post was modified by editor different than post author
- Want to add post to user dashboard
- Registering Class methods as hook callbacks
- How to make sense of the active_plugins option_value to enable and disable certain plugins from the database?
- Disabling Comment Notifications for Post Author
- wordpress get meta value by meta key
- Can I enable/disable/hide plugins on a per-site basis in multisite?
- Updating WordPress – the best approach (updating wp core, plugins and db)
- Code markup plugin like the .wordpress.com blogs offer?
- Set active theme via URL
- WooCommerce Always Include Shipping Information in Checkout [closed]
- Bad Request (Invalid Hostname) on working server, database problem
- Plugin Not Working, But Only On GoDaddy Hosted site
- How to get the current plugin name?
- Plugin throws up 404 on front-end when when enqueuing style with filetime
- Errors while using ajax from external wordpress page
- List of plugin updates in admin bar
- Peer Review Plugin for Posts? [closed]
- Server side validation for Contact Form 7 [closed]
- Bulk Image Uploader to create new post from each image [closed]
- Can I hook into get_avatar to supply a hash instead of an email?
- How do action and filter hooks understand where to look for the core function that we hooked our function to them
- Recreating a local repository from a currently existing wordpress.org repo..which I own
- Bootstrap Drop Down menu is not working
- Plugin Code ONLY on Post Edit Page
- How to run subversion and staging environments when running WordPress
- Mass check a certain box in an option panel for 3000+ WooCommerce products?
- using do_shortcode
- get meta value from database by post id
- Disable plugin only for one post
- How can I add “last updated” in plugin descripton?
- get_option / wp_localize_script Not Working in OOP Plug In
- Creating a form and displaying entry data as a table
- Enable Shortcode for Custom Wordress Widgets
- How can I apply no-disposable when programmatically adding a user with wp_insert_user()?
- how to check if a shortcode is used more than one time in the same post
- acceptance_as_validation: on is not working Contact form 7 [closed]
- “User need to be logged in in order to make a booking” issue
- Custom Plugin scripts from admin working in frontend
- How to properly use wp_mail() in my own plugin?
- WordPress asks to update a plugin already updated
- Edit plugin’s HTML output with Hooks
- Shortcode generated widget to appear on same line as heading text and button
- Show custom taxonomy in theme
- Implementation to count page visits of unique visitors based on a cookie
- How to prevent encoding plugin HTML output to entities?
- How to differently style pages that display posts of different category in WordPress?
- Social sharing plugin directing to blank page after post sharing
- How to build a navigation menu for long-form texts like this one
- Like/Dislike Bar not working when updating
- how to change/remove/hide menu under installed plugins
- Simple fields plugin WordPress show repeatable file field
- How to check my WordPress.org site MySQL queries generating items?
- onclick open window [closed]
- how to make a plugin secure, so any one if changes something in plugin, it just disables it self and notify us on server? [closed]
- $wpdb selects wrong database
- Plugin update warning
- JQuery UI plugin not working in IE7?
- wordpress admin-ajax bad request 400
- ACF prugin for WooCommerce Shop Page
- Hidden Elementor sections slow down website. How to fix this? [closed]