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:
- Post source link plugin – small modification
- Can we hide a certain user in WP?
- Adding LOAD MORE on a page
- How Can I Increase Breadcrumb Position Count (Starting From 2)?
- WordPress hierarchy clarification, does post_type_archive take precedence over taxonomy-term archive?
- Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?
- Replace only the first CSS class
- Ultimate Members Default Post Layout problem
- Making a list that can be filtered by category/tags
- Adding discount functionality to the cart
- Changing the CSS with a plugin
- how to change a static testimonials into dynamic
- How to assign a specific service to a specific provider based on location
- Precheck fields when I add a new post
- Rename a folder via HTML POST request
- How can I add a custom Javascript snippet to display my feedback in footer?
- My wordpress local urls is still displayed even moved to live
- WordPress site hamburger menu toggle not working
- Move plugin pages from dashboard to front-end
- working code, not working – Plugin Dev
- Add custom WordPress admin page with pretty url via code
- Cannot view Custom Post Type no matter what I try
- Creating custom “player-objects”
- Why does plugin_url append absolute file path?
- save short-code in my custom plugin settings problem missed something
- Cron job shedules replace?
- Create survey that redirects to sidebar menu customized to answers
- Custom wp_list_tables redirect on specfic page
- Custom shortcode being shown in WPBakery backend rather than the block
- Pagination (including title of each page) in a post for a long posts
- Issue calling my functions on Plugin activate in WordPress
- Warning: sprintf(): Too few arguments in nav-menu-template.php
- Paid Membership Pro displaying a user name in PHP
- User upload dashboard
- Installation failed, trying to install ANY plugin
- Load my Inline js footer area
- Move plugin upload folder from mywebsite.com/wp-content/uploads/pdfuploads to mywebsite.com/pdfs?
- Custom Icon assigned to menu items not working for multi-site networks
- How to send custom mail when a user complete a specific form
- How to restrict the user from viewing comments but with option to write comments?
- register_activation_hook not creating table
- Woocommerce list variations that are added already to cart in Single Product
- Create dynamic / data driven pages in wordpress
- Customize plugin templates
- Automatically check “Enable stock management at product level” to the existing products?
- WordPress delete cookie
- custom/automatic export function – one post at a time?
- multiple string replace of post’s content for large data
- Flexslider empty slide
- How to fix slow comment query?
- Echo custom admin field into a is_single()
- Widget display in theme
- The etiquette of forking a plugin and table tag
- Ubermenu 3 Nav Bar Customization
- Manual Backup – How to save to Firefox or Chrome (instead of IE which brings up popup I can’t get rid of)
- How to use custom footer template in a site-plugin?
- Multi-site error wordpress after migration
- Custom SportsPress list
- Creating Nested custom fields
- Share on social media created listing after submission
- How can I save cookies to members
- How to restrict “too soon” downloads with a general rule?
- Translation plugin with default language?
- Best approach to serve static content within a regular page
- Overwrite user role
- Confusing problem with displaying message recipient metadata
- Place content inside the Post Loop
- Customize a widget position
- Display Powerpress media url
- Why the output of an image gallery plugin is not displayed into a page of my custom theme?
- Custom pages with plugin
- WP plugin calls for custom pages
- Am I using an action hook correctly?
- Changing the body of mail sent to new user registration
- Update Plugin Without Overwriting Custom Settings
- Which One Is Better For Managing Add Ons For Extensible Plugin?
- Hide some shortcodes on posts from back-end
- Should I paste CDN links in a JS file or use a Bootstrap CDN plugin?
- Conditional required fields for WordPress Contact Form 7
- Plugin does not create a custom table upon activation
- Problem with Duplicate Meta / tag description in Webmaster Tool [duplicate]
- WP Super Large Menu Problem
- Disable default posts (Posts,Pages,Comments and Media) in wp-admin
- Where to insert customize_register in wordpress plugin
- How to build a navigation menu for long-form texts like this one
- Plugin program: JQuery not working in this plugin
- Replace code in plugin template
- Creating a page that does not show up in the frontend navigation bar
- Restrict my pages from public
- Style WordPress Custom Post Type Single Page
- Display_rows() and column_cb() strange behaviour
- Directory structure for plugin changes
- Need to add custom cart item data
- Prevent part of plugin loading in another menu
- Redirrect after facebook successful login to wooommerce cart page url
- custom user profiles like linktree fully customizable on the front end
- How can I keep a WordPress dropdown menu open when navigating to a child page?
- WordPress child theme widget customization – Eduma
- How to show custom post type in all post section?
- how to add custome text in each products side in checkout page after pincode validation [closed]