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
- How to view Plugin Manager in Notepad++
- Use Notepad++ as HEX-Editor
- fix the error : Plugin with id ‘com.android.application’ not found
- Best collection of code for your 'functions.php' file [closed]
- Tips for using WordPress as a CMS? [closed]
- Adding a Taxonomy Filter to Admin List for a Custom Post Type?
- Updates for a private plugin?
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- Best way to initiate a class in a WP plugin?
- Which banner plugin is this? [closed]
- Upgrade 4.5.2 to 4.5.3 deleting row in wp_options table
- Woocommerce – adding variations to variations [closed]
- Best way to include wp-config.php
- similar of my posts in all over the internet sites and blogs [closed]
- Between functions.php (theme), widgets, and plugins, which is loaded first?
- Create custom page templates with plugins?
- Custom Post Type Templates from Plugin Folder?
- to perform the requested action wordpress needs to access your web server. please enter your ftp
- Disable update notification for individual plugins
- Passing a parameter to filter and action functions
- Do deactivated plugins slow down a WordPress site?
- What security concerns should I have when setting FS_METHOD to “direct” in wp-config?
- How do you debug plugins?
- How to structure a plugin
- What’s the preferred method of writing AJAX-enabled plugins?
- Get Product id from order id in Woocommerce [closed]
- Add multiple plugin directories
- What are the differences between WPINC and ABSPATH?
- Translate a plugin using .po .mo files
- Best way to overide plugin CSS?
- How to add a shortcode button to the TinyMCE editor?
- Where do I put the code snippets I found here or somewhere else on the web?
- Is there a plugin that provides a stackoverflow style editor for wordpress? [closed]
- Get a list of all registered actions
- How can I force a file download in the WordPress backend?
- What Plugins Demonstrate Great WP Plugin Development? [closed]
- How to implement a customizable free OpenID authentication?
- Should all plugins be encapsulated in a Class?
- How to check if the product is in a certain category on a single-product.php in Woocommerce?
- How can I stop WordPress from prompting me to enter FTP information when doing updates?
- In what order does WordPress load plugin files?
- What Features would you Most Like to See Added to WordPress? [closed]
- Given the ID of a product in woocommerce, how can I get its URL?
- Adding Additional Attributes in Script Tag for 3rd party JS
- How can I edit post data before it is saved?
- Manually set global $post vars with an ID, in order to use template tags
- is_plugin_active function doesn’t exist
- How To Activate Plugins via Code?
- Disable plugin / plugin action via theme
- ‘Global’ settings page for multisite plugin
- Activate a plugin through PHPMyAdmin or FTP?
- What Are Security Best Practices for WordPress Plugins and Themes? [closed]
- How can I use WordPress functions in my stylesheet?
- How do I show data from gravity forms in my template? [closed]
- Show a different number of posts per page depending on context (e.g., homepage, search, archive)
- Creating a plugin with dependencies
- How can I make add_image_size() crop from the top?
- Implementing a CrunchBase.com Clone using WordPress?
- Difference between add_filter and apply_filters