You are incorrectly using <img
tag.. you’d better use <div>
:
echo '<div class="front-thumb">'.get_the_post_thumbnail('medium').'</div>';
p.s. it seems you donk fully understand HTML coding. better to learn the basics.
Related Posts:
- Thumbnail Image Rounded Corners w CSS (or any other good method)
- Customize WooCommerce Product Images (Placement and size) [closed]
- Targeting a Certain Post in Loop (CSS)
- How do I get row padding in a post feed?
- show random image in loop if image is not set
- Can I add generic numbering HTML classes to items as a loop runs?
- Is there any good reason for two CSS files to @import each other?
- something strange is happening to my code
- Closing the loop…featured image variable based on post id
- using wp_get_attachment_image_src in foreach loop
- How to print redux gallery feilds id? [closed]
- Display post formats differently on index.php (loop in function)
- Multiple instances of Featured Image Thumbnail As A Background On Homepage
- Adding first and last classes to three column layout in Bones boilerplate
- Insert content above an embedded video inside Wordress’ php the_content
- WordPress posts in the loop not stacking side by side
- Get gallery in loop through ajax
- Get a specific size from wp_get_attachment_image_src
- Return only one post format in index.php [duplicate]
- Cant pull in featured Image
- change the_content images for different sizes (Desktop, tablet, mobile)?
- Get gallery and product gallery images full size
- Building theme so user can change header image [closed]
- Is there a way to target only images within the loop?
- Add Div IDs dynamically to CSS
- Change the way wordpress outputs images or image galleries
- Problem with ms-thumb-frame-selected class in Master Slider
- Get date of last update outside of loop
- WordPress category & taxonomy loop with pagination
- Changing behavior of the loop twice in one page
- Displaying child page content of a certain parent
- Pagination adding extra posts only on page 2
- If Loop has odd number of posts on last page Custom style for last post in it
- Layout shop page: resize images and columns
- How can I use get_permalink() outside the loop?
- Two loops by pre_get_post on same page
- How to check for specific content in comments in the loop
- Problem the_permalink
- Sort Posts By Category?
- Can’t access login screen, wp-login.php 404’s
- Create static front-page with 3-5 recent posts
- get latest 5 posts and a specific post and sort in a specific order
- How to use current_post to open a new unordered list every five posts
- Rating system and changing the loop
- Problem: wp_query outputs all images on site
- Pagination for multiple loops
- How to target thumbnails of the first post in the loop
- t5-fresh-editor-stylesheets.php breaks image placement in WP Beta 3 editor
- Infinite Scroll on a loop?
- Include multiple page ids in loop
- “Call to a member function have_posts() on array” error on have_posts();
- How to exclude or filter password protected posts when using next_post_link() previous_post_link
- Last class on last headline?
- Get the image src and href data from posts
- Call wp-blog-header.php header without performing a wp_query
- How to output thumbnail twice in a loop
- Frontpage pagination by week
- Integrating WordPress with Your Website
- Altering “posts_per_page” for defaut loop
- Display more than 10 posts on author.php file
- Accessing the Posts page Content
- How to use this $tax_selection variable in this custom loop?
- Display all categories as plain text
- Query post & loop problem.
- Exclude current post ID from loop in sidepbar.php
- loop inside a loop : search for posts in the same category
- How do i create a loop that list and divide posts into months?
- Forcing page to top of the list when using get_pages
- WordPress Animation Adjustments
- How to declare a variable in a loop and make it available in the template file
- How to display fields from the loop in two separate divs
- How to use single.php output in function.php
- Duplicate posts on archive page
- Pagination on a underscore custom theme
- Build a Page which shows the Oldest Post with specific Custom Field Value
- WordPress multiple loops with default pagination
- Loop random posts and display odd and even based on two alternating meta values?
- WordPress + Isotope: how to give different widths to each entry?
- How to manually define the primary loop
- Url outside the loop
- How to filter get previous post function by meta value DESC and post date DESC?
- Style first 3 posts differently and use a 2nd loop to get rest of posts / offset and pagination broken
- Posts Per Page is Not Returning Correct Number
- Set loop format & have a loop inside other one
- Need a conditional to test if title of parent page matches title of child page
- Extending site width according to the image size
- Query counting excluded category on paged loop
- Using shortcode within shortcode with dynamic variable
- modify default HAVE_POSTS() Loop without inserting new variable (i.e. $loop->HAVE_POSTS)
- Why is my pagination showing up?
- stuck with template hierarchy
- How to create an identical second loop for attachments?
- Randomly Display One Image From a 10-Image For Loop
- An action that runs after each post in the loop on index/archive page?
- How to implement template file and the loop
- Show only posts from todays date [duplicate]
- Multiple loop with pagination in same page
- Why is the image in div not displayed in full-size?
- Why did my most recent article fall behind an older one on my site?
- I make sticky post for my archive page for custom post type with ACF field and loop is not working