why OH WHY does everybody insist on making custom fields for everything .
is there a special reason that you would want the use of custom fields ?
If so, please explain exactly what you want to achieve .
If not – a much better approach (and more fool-proof for non-computer-savvy-clients) would be to use the_post_thumbnail();
– like you stated in your question already, with Additional image sizes in the theme .
I do not want to duplicate my answers – so you just as well read here :
Display thumbnail from custom field
Basically you will use
<a href="https://wordpress.stackexchange.com/questions/38886/<?php the_permalink(); ?>"><img src="the_post_thumbnail('your_size_name');" /></a>
Related Posts:
- How to Delete All regenerated thumbnails but keep the original ones?
- Make thumbnails in woocommerce replace the main image instead of opening fancybox
- How can i force Display names to be the same as Usernames?
- How can I show drafts in wp_dropdown_pages list?
- How can I save repeatable fields with one value inside an array?
- Edit Imported advanced Custom Fields from wordpress Dashboard
- Add custom meta box on Post page
- how to display all posts Custom fields dynamically?
- How to link to YouTube videos with thumbnails?
- How to get custom field image url of specific size
- Advanced Custom Fields query
- Custom options page checkbox will not save, despite working with text
- Datepicker not supporting timepicker
- Upload files programmatically to users
- How WordPress autosave can save plugin fields?
- How to create Repeater fields using Advanced Custom Fields?
- Plugin allowing for artists, events and venues
- How to remove duplicate Custom Fields?
- Plugin not saving values when placed in a folder within /wp-content/plugins
- Security checking in meta_box save is reluctant?
- Make the checkbox meta field checked by default
- WordPress CMB2 – Run function on save
- Saving Custom Post types and fields to a custom table
- Carbon Fields use in custom plugin class
- How I can get custom field’s current value?
- Woocommerce – How to populate custom select field with stored values on checkout page?
- How to query the custom fields by language?
- Assign / update custom field value for all posts (How can I assign only to posts without custom field value?)
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- is there a way to link one of the field in ACF field group, to a field in a media attachment page? [closed]
- How to toggle between two custom fields in WordPress woocommerce ‘WC Product Field Group’ plugin?
- How to create an input field, and base the output on spreadsheet data? [closed]
- Custom User meta field display
- Unable to select image using custom image field type
- Redirect to another page using contact form 7? [closed]
- Every new post/draft has a custom field variable “yst_is_cornerstone” showing
- How to Resize the Custom Post Images?
- Amazon.com intergration with WordPress?
- Sticky option for custom post types without using custom fields or plugins
- Disable globally “Crop thumbnail to exact dimensions (normally thumbnails are proportional)” with Multisite
- How to add an extra, independent set of custom fields?
- How can I store data from custom fields to custom tables?
- Plugin that lets visitors Like a post (not facebook) and stores likes in custom meta?
- Parent Child Custom Fields with Advanced Custom Fields
- grab or load text on demand
- How can I add user profile fields to my mailpress mailout
- Dictionary-style definition list plugin
- Advanced Custom Fields Plugin – Images not displaying
- Adding custom Field To The Posts Listing
- Creating New Dynamic Fields for a Certificate (Number Generation, Code Referencing, and more)
- What snippet do I need to type to show my ACF field show up on my theme?
- Is there a way to make [Table Of Content] plugin while not using revision data?
- Table of contents (TOC) plugin is not showing header tag
- need to find duplicated meta value in custom filed and view the posts that have the same value
- Help with autofilling field
- how to find out which plugin disable custom field for post
- Register PODS Custom Field with WPGraphQL [closed]
- Thumbnail image doesn’t show up in Shortcode output
- get_post_meta shortcode returns empty field
- Create multiple posts when a custom post is created
- Adding Custom Endpoint in WordPress Rest API
- General Term for this form Field
- How do I change the functionality of an image slider which is part of ACF?
- Make custom post types using ACF
- Cannot display wordpress thumbnail
- How to pass multiple custom fields as shortcode’s parameters
- Meta Key array building with multiple input values from fields
- Custom plugin issue – Notice: Trying to get property of non-object in
- If I am not writing a theme, how do I add custom fields to a user for a plugin
- Taxonomy question
- How can I call functions from a custom plugin?
- Problem with conditional woocommerce custom checkout field
- Do something with thumbnail image on post publish
- Add custom field for users
- Need help getting a certain value out of a multi dimensional array
- resizes images on the fly
- Creating a user ‘add custom field’ section
- Multiple thumbnails and one gallery
- Thumbnails have stopped generating correctly
- How to add multiple versions of the same featured image for SEO reasons?
- What method should I use for a sidebar widget that reads latest posts?
- WordPress Meta Query: Relation is not working correctly
- How can i do custom author list?
- force category table refresh when adding new category
- Thumbnails and Lightbox
- How can I server scaled images?
- get_post_meta does not work
- Converting a themes featured image to WordPress featured image
- ACF: Hide a div or template section when a custom field (in a field group) is empty
- How ACF Advanced Custom Field works with Woocommerce Single Product [closed]
- How do I add custom fields to the “Edit page” admin screen?
- Displaying Random Image from ACF Options Page [closed]
- Need help saving input fields for Security Deposit plugin in WC Vendors page
- Adding a variable to a meta field in the backend?
- ACF: Not displaying ACF data from another post
- Order shipped by which driver[hook for woocoomerce order staus changed and popup in admin panel ] [closed]
- How to change data format in custom meta box field [closed]
- Render CMB2 select option to post page [closed]
- Is there a plugin or another way that can help me find out the underlying files of a page/post? [closed]
- Order custom post type by posts with most likes first