Skip to content
wpbeaches
  • Home
  • About
  • Services
  • Work
    • Template Library
    • Web Development
    • Portfolio
  • Contact
  • Blog
    • ACF
    • Beaver
      • Beaver Builder
      • Beaver Theme
      • Beaver Themer
    • Genesis
    • jQuery
    • macOS
    • WordPress
    • WooCommerce

Output The Featured Image in a Loop as a Linked Media Image

September 18, 2018 - 2 Comments
Feature Image Loop

Instead of linking a featured image to a post permalink in a loop – here is how you can link to its original image of itself. View the code on Gist. So above, the title and featured image is output of a post – the title has a link to the post whilst the image…

Read More
Categorized WordPress Tagged featured image, get_post_thumbnail_id, the_post_thumbnail, wp_get_attachment_image_src

Add a Class to a Featured Image in WordPress

March 2, 2016 - Leave A Comment
add-class-featured-image

You can add a CSS class to a featured image in WordPress using an array in the_post_thumbnail   if( has_post_thumbnail() ) { //Add in featured image & class the_post_thumbnail( ‘featured-podcast’, array( ‘class’ => ‘alignnone’ ) ); } This can be handy for coding out a custom loop.

Read More
Categorized WordPress Tagged css, featured image, the_post_thumbnail
Get Beaver Builder Now!

Tags

ACF apache archive beaver beaver builder beaver theme beaver themer bootstrap cache category checkout cpt css customizer filter flexbox footer form genesis header homebrew htaccess iconfonts image javascript jquery loop markup menu meta mysql php pre_get_posts repeater search filter pro serverpilot shortcode slider taxonomy template UI/UX while widget woocommerce wp-cli

Donate

If you found something that helped you out and would like to make a donation, that's great

PowerPack Beaver Builder Addon

Our Location

We are based in the Northern Beaches of Sydney and work with both local and overseas based clients.

Work With Us

Let us know your web requirements, see our services and use the contact form to get in touch and start the ball rolling.

Check Us Out

  • Home
  • Blog
  • About
  • Services

© 2017 · NEIL GOWRAN · POWERED BY WORDPRESS, BEAVER, AND HOSTED ON RUNCLOUD AND RACKNERD

Scroll To Top