Within your Query loop, using your image URL as an example, put this:
<?php $image_url = get_post_meta($post->ID, 'image-url-field', true); ?>
Replace “image-url-field” with the name of your custom field.
Then, also within that same loop, do this:
<?php echo $image_url; ?>
Reference: http://codex.wordpress.org/Function_Reference/get_post_meta
Related Posts:
- How to store and receive variables in WP sessions?
- Reduce or prevent calling of update_meta_cache
- Query Multiple Post types each with own meta query
- Order wp_query by calculated field
- new WP_Query() – what is the earliest valid hook?
- Extending WP_Query — Optimise SQL query
- WP_query and pagination?
- pagenavi with merged wp_query [duplicate]
- How to get post from all Blog Multisite to the Main Site?
- Select posts with any post_type from database?
- Search Custom Post with meta_value NULL
- Ajax Infinite Scroll In Custom WP_Query Loop Not Working
- Better to make new wp_query or only modify main query each time?
- How to display images in related posts?
- WP Query – Get WooCommerce Products with variation that is in stock
- What is the difference in a query when using a fieldname as a meta key vs orderby field?
- Get all post IDs from current WP_Query – not just currently visible
- How to Modify Taxonomy Archive Page with Search Parameter?
- $wpdb->insert inserting two rows in database
- Custom Post order for homepage
- Arrange BBpress topics by created
- Warnings in nav-menu when visiting query pages [closed]
- WP Query for variable taxonomies
- WP_query Date Range results not matching loop
- Sorting posts DESC based on the number of comments using WP_Query
- Create unique page without header.php for json feed
- $wpdb select date range of posts
- WP Pagination on Posts Search Results Page resulting from AJAX WP Query
- How to avoid wp_query returning the same post I’m on in results?
- Custom query for sidebar isn’t returning results
- Query multiple meta values
- Why isn’t my multiple orderby working?
- WordPress Loop and $post
- How can I create ‘future’ and ‘past’ parameter for restAPI by filtering the CPT custom date field by greater than / less than current datetime?
- WP_Query tax query part of slug
- WP_Query() order by post content lenght?
- Query posts without meta preload
- How to implement a new row_count method in WordPress?
- reset to main loop doesnt work
- Applying posts_clauses filter to specific queries only
- Some doubts about how the main query and the custom query works in this custom theme?
- 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
- Shortcode for latest -not expired- posts
- meta_compare not comparing whole integer
- WP_Query – Object manipulation vs WordPress functions
- Only display post if published in last 24 hours?
- WP_Query with rewind_posts creates duplicate titles
- Transients with dynamic WP_Query
- How to remove the most recent post from $the_query
- WP_Query loop else statement not executing
- Selecting posts with a given meta value for a meta key
- pre_get_posts – editing query, tax_query
- Check if a post has term inside loop
- Display all posts in a custom post type, grouped by a custom taxonomy. How to sort the posts alphabetically and the terms by ID?
- How do I add a relation parameter to my filter query?
- Hacking ‘posts_per_page’ in WP_Query
- ajax wp_query conditional tags not working
- Comparing 2 Decimal Numbers from custom fields and displaying posts
- Query outputting YouTube url rather than embedded video
- max_num_pages says 4, yet I am only able to navigate to the third page
- Paginate pages with dynamic query
- WP_Query loop doen’t work with my custom taxonomy
- wp list pages using meta box value
- get_var is neither a string, integer, or array …?
- Can I get one wp_query to double order like this?
- paginate_links appearing on page but it doesn’t actually paginate – pagination on a static page with a dynamic `post_type` argument on a static page
- Sort custom post by custom field if none order by latest release
- how to include orderby value that is empty?
- show most viewed post
- WordPress Carousel with recive posts (Bootstrap)
- Custom query showing all acf field values instead of the one searched
- Pagination Shows Up But Won’t Work on Custom Gallery Page
- Pre_get_posts only show posts by administrator roles
- posts_per_page in a tax_query
- Modify a query with no results in pre_get_posts
- WP Query – Search in title or author_name
- WP Query for Multiple Post Types
- URL to Post Archive of Custom Query
- WP_Query: custom orderby (not ASC nor DESC)
- Show posts from categories instead of tags
- Orderby query does not work for custom fields even with meta query
- Query by Category and Custom Field – Shortcode
- Querying posts with meta key and meta value not returning anything
- WP_Query a custom field value bringing back 0 results
- Set Transient on CPT
- Year based WP Query
- Horizontally paginate through sets of blog posts?
- Comments orderby comment date not working
- Switched from query_posts to wp_query, pagination no longer working
- When importing a database any page with a wp_query in doesn’t work
- My class function is not seeing GET url paramaters
- Wp query by 2 meta field – check if they exists / have value
- Adding css tweak based on page template
- Show linked products using wp query and woocommerce
- Standard Loop – wp_query
- Why wp_query return 1 row if i have 3 row pass in it
- WP Query – if there are no posts with certain tag query other ones
- How does ‘category__not_in’ differ to cat => ‘-1’?
- Custom Wp_query loop takes very long