At first blush, it appears that you are missing a colon from your else statement. Without more info, though, I cannot tell you anything else.
<?php if( has_post_thumbnail() ) : ?>
<div class="image-wrapper-hover">
<?php the_post_thumbnail( 'large' ); ?>
</div>
<?php else : ?>
<?php catch_video();?>
<?php endif; ?>
Related Posts:
- Adding HTML within an image title attribute
- alt, title tags not showing
- How do I remove generated HTML around images in posts?
- Why html tags are being appended to my pictures?
- How to resolve – IE 6 ignores img “width” properties
- Trying to create a mouseover effect in html using Gutenberg editor
- How can I insert an image map into a WordPress blog post?
- Images will not display, when I call them up with html in wordpress, just two blank small spaces [closed]
- How to fix “.webp” being auto-added to the end of image urls
- Changing default img html markup but not in admin back-end?
- Modifying the HTML Output of Inserted Images
- fetch images and videos
- Rewrite inline image markup
- Can’t add image to site via php
- What exactly is the description field when uploading an image?
- HTML Img with data:image src gets sanitized in admin?
- Landing Page with HTML CSS JS and Images on wordpress
- How to link to img src using HTML email template in WordPress
- Relative path not working at all in WAMP local environment
- Broken images/videos after migration – DIVI theme- works ok on Mac OS
- Why doesn’t WordPress make thumbnails for videos?
- How do I embed youtube video via url in frontend posting
- Display ajax preloader for large images within posts
- Garbled HTML pulled for page description “caption id=attachment…”
- How can i make like this structure?
- Imagem resolution responsive
- Forcing absolute src links in the RSS feed
- where is images/image.jpg?
- Issues with the excerpt (wordcount/HTML/images)
- Parallax image problem
- Placing a background image with text over it
- Gutenberg block HTML image rendering override
- get attachment title based on attachment id
- Get Image Description
- Wrong image dimensions in Insert Media after add_image_size()
- PHP Fatal error: Call to undefined function download_url()
- Strange img srcset behaviour
- Images uploading to wrong folder
- set_post_thumbnail_size not cropping featured images, but reducing proportionally
- Get URLs for All Sizes of Image via Admin Panel
- Show Post Excerpt in Image Attachement
- WP 3.4 has missing photo data
- What’s the best “insert all images” plugin?
- Image Quality Thumbnail Compression in WordPress?
- Gutenberg editor get post featured image by id
- How to add image id class?
- Local WordPress installation doesn’t crop images
- wp_get_attachment_url with specific image_size?
- Get meta data from image
- Shortcode for a link and thumbnail
- Fuzzy Images in WordPress 4.4
- In Wordress one author can not see the other’s author uploaded images through media library
- How to add missing dimensions to all images to avoid cls?
- Prevent Image Pasting in RichText Component
- Default Image Link Type Setting not Working
- Fallback for missing srcset images
- max_srcset_image_width doesn’t work as intended
- Background image resets after time (XAMPP)
- Replace image caption with its title and description
- Custom thumbnail size of image when uploaded
- Is it a good practice to change media settings on theme activation?
- Insert File URL Links to Existing Images that Were Not Originally Linked to Themselves
- Filter for post_thumbnail: link to small src and add data-attribute [duplicate]
- How to fix a missing image
- Function to remove all classes on images inserted into posts?
- How to get the real file type for images that do not have an extension
- Images don’t update after being edited
- Display post image in a size defined by add_image_size()
- IMG size is set to width=”964px” or “100%”, but is shown as “634px” in browser
- Prevent WP from wrapping html in caption shortcode after ‘image_send_editor’ filter is applied
- wordpress 4.22 does not generate thumbnail images
- How to implement CSS-defined images from bootstrap site in wordpress theme
- What is the best way to associate multiple images to one page?
- Fetch the latest post with attachment image
- Fetching uploaded images using Link URL
- get rid of random string before an for an image path on wordpress
- Image modification
- Using srcsets in a custom block
- Plugin to select the custom image crop area
- Glitched page redirects to image
- How to Display Image Caption but Not Alt Text
- How to change background image
- I want to create a hero image with text and a button on my front page. How can I do this?
- Why image Thumbnail url is not displaying with custom size?
- get_image_tag & wp_get_attachment_image_attributes behaving strangely
- add_image_size limiting sizes (???)
- Automatically generate multiple image sizes for element
- My feature images are showing up twice on the preview page
- Uploaded Images not re-sized to ( Thumbnail, Medium, and Large ) size
- Custom styling Insert Media window
- Create a Link to Larger Image from within list of smaller images
- php.ini -Theme-specific settings
- Display X images from a gallery in the sidebar
- Where do you upload images on a wordpress site?
- My image rotate 90 degree
- Font size on image captions on mobile
- getting image alt text via ACF plugin in WordPress [closed]
- What type to upload image within theme options?
- Add a background image into a post [closed]
- Images have dissapeared from media library and site