What you are describing can be accomplished with Featured Image and a simple wp_query call.
These are very core elements of a WordPress theme. You’d need to define a size with add image size, and then call it up using the aforementioned post_thumbnail.
Your loop might look something like this:
$args = array(
'post_type' => 'post',
'posts_per_page' => 3
);
$loop = new wp_Query($args);
while($loop->have_posts()) : $loop->the_post();
echo '<a href="'.get_permalink().'">';
echo get_the_post_thumbnail($post->ID, 'my_size');
echo '</a>';
endwhile;
wp_reset_query();
Related Posts:
- How can I edit post data before it is saved?
- How can I delete orphan keys in WordPress database tables?
- Is it a good idea to edit an already existing plugin to add more functionality?
- Creating Unique Post URLs for A/B Testing… Is this even possible?
- Show Similar Post Titles ( Similar to Stack Exchange )
- Plugin (or Theme) containing its own Plugins?
- How do I unlock a post programmatically?
- How do I extend one plugin I’m writing with another I’m writing using classes?
- How to create extendable wordpress plugins
- Open external links in a new window
- How can I limit functionality in one version of a plugin?
- Some way to Flush or Overwrite all Imported Content in a Site for a Fresh Import – How?
- Which functions in theme or plugin load first
- Any way to use a custom Parameter for youtube embed without using an iframe?
- Add CSS animation as Preloader to WordPress
- WordPress 3.1 and Disqus throws Warning: number_format() error in Posts List
- WP Plugin for Terms of Use
- Woocommerce: Changing the variations select default value? [closed]
- Automagic Link Shortening for Non-Hosted WP
- Akismet plugin is deleting spam despite preferences
- Popup Maker nav menu item not working
- Distributing and packaging plugins
- Multiple Instances sharing the same database in a development environment
- How to add rewrite rules and pagination to retrieve attachments files?
- Leveraging WordPress Comments on Custom Plugin Object page
- Debugging Technique Question re: functions.php
- How to check what plugins used to be on a WordPress installation?
- Possible to replicate economist.com’s debate section in wordpress? [closed]
- Remove Duplicator plugin from admin menu if not an administrator
- Input with spaces in Shortcode attributes overwritten by defaults
- Add a custom form on the post-new.php admin page
- looking for navigation plugin (accordion) [closed]
- Do widget options need to be escaped widget()?
- Is there any W3C compatible Share & Follow plugin?
- className not populating in custom block
- In the archive widget, how do I sort in between two years?
- Customization API for plugin development
- Fromcraft Plugin On click submit button [closed]
- How to redirect users to their profile after they successfully edit their profile
- Customize The Events Calendar to Include an Option to Expand for More Events Listings
- Redirect to another page using contact form 7? [closed]
- changing posts layout in ultimate member profile plugin
- Login Customizer doesn’t change the background of the register form
- Integrating WP E-commerce plugin into custom theme
- Custom post types – remove default post supports through empty array?
- WordPress as template engine
- When I try to de-activate any plugin it gives error “Warning: call_user_func_array() [function.call-user-func-array]”
- WordPress – source link plugin – how to modify it?
- Minimize and Uglify WordPress Plugin Files
- How to create plugin in wordpress [closed]
- Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile
- I want to filter my products with attributes [closed]
- Action on WordPress Install
- Delete data from custom table when deleting a post
- How display specific category post to specific users?
- What is the best way to make a custom page from a plugin?
- Download counter for skydrive shared files in wordpress
- Automatic recurring payment using YITH subscription and Dokan Stripe
- How to customize maintenance mode notification in wordpress?
- How to keep plugin (media-sync) running even the tab is closed?
- Hide fields in woocommerce settings
- Elementor: How to design Dropdown Select Box Navigation page like Chegg
- implement custom roles in custom plugin
- How to access a wordpress plugin page or add posts without doing it from the WordPress dashboard?
- Adding LOAD MORE on a page
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- How to assign a specific service to a specific provider based on location
- WordPress site hamburger menu toggle not working
- Move plugin pages from dashboard to front-end
- Creating custom “player-objects”
- save short-code in my custom plugin settings problem missed something
- Cron job shedules replace?
- Installation failed, trying to install ANY plugin
- register_activation_hook not creating table
- Customize plugin templates
- WordPress delete cookie
- multiple string replace of post’s content for large data
- Widget display in theme
- Ubermenu 3 Nav Bar Customization
- How to use custom footer template in a site-plugin?
- Multi-site error wordpress after migration
- Customize a widget position
- Why the output of an image gallery plugin is not displayed into a page of my custom theme?
- Update Plugin Without Overwriting Custom Settings
- Where to insert customize_register in wordpress plugin
- Creating a page that does not show up in the frontend navigation bar
- Problems with installing and deleting plugins
- wp_query for more fields plugin
- Issues with Post 2 Post Plugin
- Pronamic Info Window
- From a legal perspective, is it okay to customize a plugin’s code?
- Contact Form 7 Default value from url [closed]
- Child Plugin Admin Panel
- Does anyone have the Custom Post Permalinks plugin from John P. Bloch? [closed]
- Create Custom Coupon Type
- WordPress isn’t sending welcome email with the password reset
- Using ACF to allow user to add and edit multiple saved forms
- Prevent primary navigational menu from expanding during page load (WordPress / Astra Theme)
- How to get selected variation from URL?
- WordPress child theme widget customization – Eduma