use this snippet
here i get image which have post id 5
<img src="https://wordpress.stackexchange.com/questions/344213/<?php echo site_url(); ?>/wp-content/uploads/<?php echo get_post_meta(5,"_wp_attached_file',true); ?>' height="100" width="100">
check get_ani_taxonomy_fields($ani->term_id, ‘acf_image_field_name’) this function return post id
Related Posts:
- Include custom post type that matches taxonomy field in another custom post type
- Display List Of Posts Containing a Relationship Field Value [ACF]
- How to add taxonomy filter on the query fly?
- Using OR conditions in meta_query for query_posts argument
- ACF Relationship Field Search Filtering [closed]
- ACF datepicker meta_query Compare Dates in m/d/Y g:i a – Not in Ymd Format
- WordPress meta_query and order by custom field
- Revolution Slider Orderby Two Custom Fields
- meta_query with array as value
- query posts in functions.php and update a field
- Filter and list posts of a custom taxonomy
- How to show only one post for each categories of taxonomy of custom post that contains a specific custom field
- How to Modify Taxonomy Archive Page with Search Parameter?
- Get array of current post term ID’s
- Display link to taxonomy archive only if it has posts with certain custom field values
- Query Posts depends on custom field inside repeater field using acf
- ACF Relationship + WP Template Parts
- WP_Query, tax_query and term_meta: How to?
- Minimising Database Queries when using Advanced Custom Fields
- WP_Query meta_query >= date
- Getting Taxonomy inside WP_Query Loop
- Custom query based on meta key – Reduce three states to two in results?
- Order posts by taxonomy count
- Include custom field in Ajax search WordPress
- Any number in meta key (wp query)
- How do I run through a WordPress loop called from a filter function?
- How to Union two different conditions in one WP_Query
- WP_Query ignoring tax_query when is_singular
- How do I exclude the lowest level terms in a taxonomy?
- Excluding pages in WP_query using ACF
- WordPress query with items from more than one selfdefined taxonomy as `term` argument
- How to do a wp_query with two acf-fields, sorting on one of them
- Using Advanced Custom Field for file upload, how do I load the file url
- How to display an other custom post type in a different custom post type’s archive?
- Post loop for all taxonomy terms
- Multisite wp_query & switch_to_blog issue
- Stuck in the query loop
- Get all fields inlcuding “ACF” (Advanced Custom Fields) columns in wp_query
- find posts that don’t have a custom taxonomy
- Include post content of linked posts in search
- get all posts associated with a custom taxonomy
- How to set an alternate posts_per_page value for default queries in different templates
- How to make posts unqueryable/unpublish posts where ACF relationship field is an unpublished post? [closed]
- Merge 2 custom post type posts and taxonomy terms and sort ascending
- Tax Query only returns for the first of several terms
- Can’t fetch Custom Post Type Data through Custom Query
- JSON – Create rest api endpoint for Advanced Custom Fields
- WP Job Manager plugin – Listing only the twelve job categories on frontpage order by jobs they have
- How to print term name inside wp post loop
- Check if a post has term inside loop
- Custom query filter by ACF date custom field
- How to get posts by category and by choosing a taxonomy term?
- How to restrict search on a certain page to only return results against custom taxonomies?
- Query Taxonomy By Page Title
- WP Query orderby ACF boolean values and ACF field value
- Optimising WP_Query with ACF Fields
- get_the_terms has strange result since version 6.0
- How to display posts from custom post type category(custom Taxonomy) wise?
- Why is my pagination /page/2 taking me to index.php?
- WP_Query – display posts by custom field and order by another
- WP_Query for distinct meta values
- Group Product Types
- Sort custom posts by date and then by taxonomy
- Excluding posts from search results page with meta query not working
- Populate select list with meta values from all posts of a Custom Post Type
- Filter for each loop when WP_Query has no posts to show
- Form checkbox value going to dynamic URL
- wp_set_object_terms() custom taxonomy not working correctly when using insert post
- WP Query by variable custom field
- How do I stop the same post showing multiple times in a archive?
- Query for getting posts with their custom fields data in WordPress
- Related categories order posts by category
- WordPress – Form does not filter the results of taxonomies
- WP Query for all events prior to current date
- Custom query showing all acf field values instead of the one searched
- Show one post of each custom taxonomy
- Pre get posts sort by meta key returns no results if meta key does not exist
- How to query wordpress with array of meta_values?
- ACF: using two loops, the_field returns field content from another loop
- Optimal way to make tags in tax_query optional?
- How to define a custom hierarchy for terms?
- Adding additional taxonomies to wordpress taxonomy page
- How can I modify standard search query to include also ACF custom fields values?
- Query Top Set Custom Taxonomy In Given Timeperiod
- Rewrite rule pagination on different url levels
- Get newest value of an array
- Filter custom post type by custom taxomony
- How to query posts by meta keys AND under specific category?
- Query posts filter not working
- Creating array to compare custom field values
- Display all custom meta field values from the database using ACF Repeater
- query_posts problem – need help
- WP_Query and DES sort for Custom Taxonomy based upon a meta field?
- Get posts using multiple values from ACF checkbox as meta query wordpress
- How do I subquery with custom meta fields?
- Best performance for use Custom Field in WP
- I’m trying to get posts under a custom taxonomy but I don’t know what I’m doing wrong here
- Display Featured image from custom post type category (custom taxonomy) wise
- Filter on one post type with taxonimy and get other post type
- has_term not returning anything