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
- WordPress tax_query “and” operator not functioning as desired
- Custom taxonomy query broken after upgrade to 4.4
- Show posts without term
- 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]
- Display posts the match taxonomy term linked from wp_list_categoies?
- Query two taxonomies via URL or link?
- ACF datepicker meta_query Compare Dates in m/d/Y g:i a – Not in Ymd Format
- Counting number of posts with Category B in Category A
- WordPress meta_query and order by custom field
- Custom archive page based on array of categories and tags
- Select posts wich has no relationship in custom taxonomy
- Revolution Slider Orderby Two Custom Fields
- List taxonomy terms plus their latest post ordered by post date
- Querying by taxonomy vs Querying by Custom fields Speed Comparison
- 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
- tax_query shows no results if nothing is selected
- How to Modify Taxonomy Archive Page with Search Parameter?
- Get array of current post term ID’s
- Setup of taxonomy term template pages
- Minimising number of queries on a page when using Advanced Custom Fields
- 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
- How to do a query on custom taxonomies that is uncategorised?
- ACF Relationship + WP Template Parts
- WP_Query, tax_query and term_meta: How to?
- Order taxonomy terms in alphabetical order
- Minimising Database Queries when using Advanced Custom Fields
- Query Custom Post Type Order By Taxonomy Field
- ACF – Get lowest & highest value from field
- If two first numbers exist in wp_meta_query value
- WP_Query meta_query >= date
- Query post from all category with same tag on 1 pages
- Query with custom taxonomy not working
- How To Fix WP Query Returns Results But Shouldn’t?
- ACF Date Based wp_query
- Multiple taxonomy And acf filter group by
- Function get_queried_object() return NULL in custom taxonomy
- 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
- What is the random string I am seeing when I use get_query_var?
- showing all search result in one template
- Querying on multiple taxonomies pulled from $_GET checkbox array not working?
- List custom taxonomy terms sharing posts with a term from a second custom taxonomy
- Query custom post type by custom taxonomy (category slug)
- How to Filter Posts by Custom Fields?
- Any number in meta key (wp query)
- How do I run through a WordPress loop called from a filter function?
- How can I display a custom field from all posts and order them individually from their parent post
- Show posts from a custom taxonomy on a page
- Is there a way to work with a specific the_field from an already queried post? [closed]
- 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?
- wp_query for multiple cities (multiple values in a metabox)
- Query Custom Post Type Taxonomy term with multiple parameters
- 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
- Query with relation and one without relation using multiple taxonomies?
- 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?
- Search form not working with custom query?
- Post loop for all taxonomy terms
- Display custom tags on pages that have a specific page parent
- Multisite wp_query & switch_to_blog issue
- Stuck in the query loop
- wp_query args adding muitiple tax_querys
- Get all fields inlcuding “ACF” (Advanced Custom Fields) columns in wp_query
- WP_Query with meta_query dosen’t return results
- wordpress ajax relationship query
- Give attachments an archive page, and exclude unattached ones
- Custom Taxonomy in custom REST API search
- Best performance for use Custom Field in WP
- Use value from meta key array for use in WP_Query
- I’m trying to get posts under a custom taxonomy but I don’t know what I’m doing wrong here
- WP_query shortcode inside acf Repeater breaks the repeater loop
- taxonomy-{term}.php terms pagination returning 404 after a certain page
- Display Featured image from custom post type category (custom taxonomy) wise
- Adding a language rule and displaying posts with a custom taxonomy term on its archive page
- WP_Query on custom taxonomy -> Location and Activity
- How to use meta_query to retrieve posts from multiple custom post type
- Filter on one post type with taxonimy and get other post type
- WP_Query filtering in ACF field containing dates
- Custom fields disappearing when a custom post type is assigned
- Showing all posts of the current custom taxonomy on archive page
- WP_query with ajax filter not working with input fields
- Include posts with a specific custom taxonomy term in author page
- wp query order posts by custom taxonomy doesn’t work correctly
- has_term not returning anything
- Problem making a WPQuery with ACF boolean
- Query Custom Post Types on Available Dates