The ACF API functions normally work with the current post’s ID. Taxonomies and Users work a bit differently, you have to supply the ID of the object you want to fetch fields from.
$category_id = 'category_' . get_queried_object_id();
$field = get_field( 'post_slider_projects', $category_id );
See get_field
in the documentation for more info.
Related Posts:
- get_field not displaying my custom field value
- Advanced Custom Fields: Using category as a rule, before publishing new post?
- Sorting posts by season
- How to loop only categories without posts (+ show category featured image with acf) [closed]
- ACF: Display category name using taxonomy field
- Assign category from custom field on post creation and update
- ACF add custom fields to categories and display
- How to query categories with Advanced Custom Fields?
- How to display a value inside a post with a specified category from a category custom field? [closed]
- Query (built in) Categories and Advanced Custom Fields?
- ACF no print data [closed]
- How can i add service category here? [duplicate]
- How to set acf color field as background color to product category
- How can I add different custom fields for each category in the same post?
- How to create a category loop on my blog (ACF Plugin)
- In ACF, how to show custom category selection tab upon selecting a main category
- ACF plugin categories bug in WordPress 3.9
- My Query is getting the wrong data
- How to use acf field value to order category?
- How to link ACF relationship field to the new Query block in Full Site Editing
- Get the children of the parent category
- How to remove the term “category” from category pagination?
- How to add featured image for category (without a plugin)?
- Category archive by year with permalink support /category/YYYY
- How do I get the category URL from get_the_category?
- Default WP Gallery – show only galleries of a certain category
- How to tax query X number of posts related by tag first, then by category if not enough in tag-related
- Exclude sub category posts from category display
- How to hide a specific category posts in my monthly archive?
- Automated adding of one tag to all the posts in a category
- Deleting All tags except categories Wp database
- Action hooks returning old category instead of new category
- Category checkboxes in upload modal
- How do I change the sql query for wp_get_archive()
- Modification to wp_list_categories
- How to run WP_Query to retrieve attachments to posts only from a particular category?
- Migrate posts into a different category
- How to get child categories of a given Post
- Display “add to cart” button on every listing in product category page?
- How to filter posts by format and category via url?
- WP_Query() returns null when results exist!
- Woocommerce category show subcategories only/omit posts for specific category
- How to display widgets inside a page content without a plugin?
- shop page with all categories with paginate
- Giving wp_list_categories the class of the category
- How to filter out Categories for specific post types on WordPress Admin?
- Limit a meta box to a specific category
- List categories with posts
- Pagination not visible on woocommerce’s category page
- Hide uncategorized when no category set
- wp_list_categories set order manually?
- Refine/Filter the Search Results by Category
- Putting a Category of posts under a Page
- change recent posts based on category
- Why is it so hard to show the URL of the current category and how to do it?
- Where and when does WordPress invoke routes
- Getting category URL with hyphens, not spaces
- How can I change the tooltip in the_category?
- Category.php loads first before page.php?
- wp_update_post is not updating category
- How to get Next/previous_post_link to go through articles in top parent category
- What’s wrong with my wp database query?
- Conditional loop for category
- Fix Warnings that shouldn’t be necessary to fix
- how to get correct category of a post in case of multiple categories?
- Show button only for certain Woocommerce Product Categories
- echo get_post_meta of all post in a category to fill up a select field
- get listed category’s id?
- Length of Category Names
- Notice: Undefined variable: category_id
- Is it possible to create an alias/custom taxonomy for a category name?
- Style a category from category list
- I need to exclude from a query a category and a few custom taxonomies
- Add a category on all archive category pages
- Multiple category columns and post counting list in wordpress Homepage
- Check for parent category
- add current-cat class to single post page
- Problem with wp_create_category
- Problem with pagination block in Gutenberg
- Product category display in tabs
- Sending all categories associated with a post to Google Ad Manager for use with .setTargeting
- Pull in an “Include” file based on a WordPress Category ID
- Sort categories by custom field in WordPress admin
- Why is URL Slug Saving Differently From How It’s Been Defined?
- Related to genre and category
- Get permalink to latest post in category
- How to noindex, follow a specific category wordpress?
- get taxonomy list in a page in the wordpress
- How to load terms of a custom taxonomy of a product in woocommerce cart page
- How to exclude category and post_tag taxonomy while displaying custom taxonomy?
- Group Posts by First Letter of Title categories
- Alphabetize all but one category
- How to make 10 post of one category
- Printing direct descendants of a category with WP_Query
- Listing category
- Anyway to hide a Category in the Categories section when adding/editing a post in WP Admin?
- Showing one post from each category, paged?
- Custom permalinks structure
- Weird html output of single_cat_title – is not inside of the html element?
- Restricted category in Woocommerce [closed]