If you know the $Post->ID of the “most popular post”, why not just use get_the_post_thumbnail() (Codex ref):
<?php echo get_the_post_thumbnail( $id, $size ); ?>
Related Posts:
- Best way to initiate a class in a WP plugin?
- Best way to include wp-config.php
- Custom Post Type Templates from Plugin Folder?
- Disable update notification for individual plugins
- Woocommerce override mini-cart.php not working [closed]
- Error: call_user_func_array() expects parameter 1 to be a valid callback
- How to prevent a post from being deleted?
- Best Practice for Referencing the Plugin Directory
- Managing WP Core & Plugin Updates for Clients
- Query Posts by Custom Field ‘Price’
- How do I create an HTML embed code to publish WP posts on other non-WP websites?
- WP WC CLI – WooCommerce setup store with wp-cli [closed]
- How to make WordPress use protocol indepentent upload files?
- Library plugin for WordPress [closed]
- Adding Button to Shop Page in WooCommerce [closed]
- Unable to load stylesheets and scripts to plugin settings page
- Correct way to use register_activation_hook
- How to add rewrite rules and pagination to retrieve attachments files?
- Have plugin require two other plugins
- How to include plugin without activation?
- How can I create a plugin installation link?
- Why do plugins that cause ‘unexpected output’ create AJAX problems?
- Are there any plugins yet that support Facebook Like, Google +1 and allow Social Interaction tracking on Google Analytics
- CMB2 installation – cannot get it to work
- Show history of post revisions on front end
- How to pull code snippet from functionality plugin?
- Plugin shortcodes not working in custom theme
- Change the backend language of a single plugin
- Best approach to fetch data from wp options to js file or php file
- Do widget options need to be escaped widget()?
- Is there any W3C compatible Share & Follow plugin?
- What plugin should I use for booking events and receiving payments? [closed]
- Creating an online questionnaire form – by Importing the questions from a spreadsheet?
- Plug-in Conflict: Art Direction and Super Cache
- WordPress Shortcode to get URL Parameters $_GET[‘name’] redirects for no reason at all
- creating html reusable blocks via shortcodes
- The Events Calendar and Easy Digital Downloads adding customer notes to Attendee export
- Modifying a .js Function for Print [QZ Tray, WooCommerce POS]
- getting an installation failed error when trying to load a plugin from a free theme
- I want to auto populate data in three fields if one drop down is selected
- How does task scheduler plugin implements cron that is not dependent on page load request? [closed]
- Enabling WP_USE_EXT_MYSQL to support old plugin
- Can I load the textdomain before a plugin is activated?
- How can I position ShareThis buttons manually when using the plug-in? [closed]
- WordPress metaboxes – textfield suggestion automatically populated
- How to tell which one of my plugins are paid or free?
- Would Gutenberg be considered a PlugIn?
- Is there a specific term for Plugins that are specified in a WordPress Post using Comments?
- Check if variable is set in filter
- White screen after plugins upgrade
- Child Themes and Updating Parent Theme
- How to write “alt” tag in image for wordpress code?
- How do I rename a category in the menu bar only?
- Gutenberg Blocks – Cannot retrieve block saved attributes in edit post
- Order posts by meta key ( Using ACF )
- How to add fields in the WordPress editor?
- Get param from shortcode in plugin function
- Is there a better way of handling AJAX requests in WordPress?
- Customizing $product->get_title() function
- Change website directory safely to add a static page on startup
- add_meta_box creating default form field types
- Plugin permissions for Editor role
- How to add an admin alert for missing plugins
- JS Plugin not executing the js correctly. Trying to make all internal links scroll smoothly
- After installing JetPack, can I delete the WordPress stats plugin?
- how to create hierachial taxonomy and manage under single post type?
- How can I disable new plugin and theme install, but allow updates?
- Dynamic URL Issue on SEO Scan
- Check if theme supports sidebar
- Change plugin descriptions
- update_option_{$option} not working (do function after options are saved)
- How get horizontal div instead vertical CSS
- Out of date plugins not showing ugrade link
- Use Case: Multiple Shipping Methods per Order
- Can’t add or delete plugins – but I’m an admin [closed]
- Ajax response returns html code instead of user data
- Registered sidebar area is not shown from plugin.
- get/show Last ID
- Why is WP template_include overwritting all templates rather than specified page?
- Building a Article Library within WP?
- What is the best practice for making a WP plugin that I want to develop responsive?
- Form tries to download a file on submit
- Undefined index – get_option
- Auto-login from backend
- Plugins don’t show up after renaming plugins folder
- How to prevent query strings persisting on certain page templates
- Use of apply_filter in plugin/widget class
- How to use wp_http with https-pages?
- Edit Buddypress Groups Activity Page Text [closed]
- GravityForms to Salesforce API, problem with people who leave out company [closed]
- Access to wordpress method inside of classes
- WordPress User Portal
- ACF Plugin WP with list-group – Vimeo [closed]
- How can i display portfolio images in WordPress?
- Can anyone tell some online tuts for plugin development for beginner? [closed]
- Custom priority with the_content filter based on user input
- Links not opening as they should. Custom WP plugin
- Is website for online game guides doable in WordPress? [closed]
- How to fix template and image buffering issues on website [closed]
- Hide attributes based on previous selection