What’s the code that shows the image? Maybe try:
<?php echo wp_get_attachment_image( $post->ID, 'full' ); ?>
This works on the attachment page in my gallery theme.
Related Posts:
- How to create thumbnails for PDF uploads?
- Inserting a functions output after the content
- Modify a function without editing template
- Add Element as a Filter to the_content
- Control the srcset much more (not all sizes in it each time)
- Remove links from the_content when using filters wp_trim_excerpt
- Changing where my author box is printed
- Insert Content Before div#main from the functions.php File
- Prevent creating multiple image resizes in twentytwelve template
- Conditional function for excluding first image from content, not working
- Creating mixture of shortcodes to use in the visual/text editor
- image_size with respect to aspect ratios
- Can’t generate thumbnail images
- Get User Login Data (date, time… )
- media resize/crop possibilities?
- Registration Hooks don’t appear to be working
- jQuery does not work
- Why does re-using this function not work? [closed]
- Pass parameter to hooked function using custom page template
- wordpress use single ajax in place of multiple ajax requests in a smarter way
- Override the WordPress core function wp_referer_field
- How to return hook data when multiple parameters are present?
- Hook into a function without a hook?
- What is the text that appears beside the page titles in the list of pages in the WP admin?
- How to edit the Tags within the image file URLs?
- Is my code correct to enqueue CSS on a specific page?
- Can’t properly set the_title add_filter to show short_URL
- Way to store featured image width and height in two separate variables?
- Insert template-part inside the content
- How to add_filter html template to middle of content
- I have problems with loading javascripts
- Filter yoast canonical add_action priority [closed]
- Pass variable from action back to template
- (Woocommerce) Order by price when entering specific category
- Need print logo without any ID & class
- srcset and custom field get_post_meta and wp_get_attachment_url
- Limit dimensions of “Full” size images
- Define PHP variable from a seperate API if statement
- How do I hook into the container of wp_nav_menu?
- Visual Composer creating own shortcodes with vc_map() to return simple Image
- Is there a way to prevent a function/method from being called outside a specific hook?
- Auto log in hook is requiring a page refresh
- How to hide image-url if no attachment?
- Best way to handle lack of titles in microblogging
- How do I pull excerpts from pages?
- attachment page template? only show attachments for current post?
- Run a jquery script on on a certain template page
- Possible to hook into Media Library preview File column and use a custom image?
- Function not working inside of a function in functions.php
- What are the meta fields for an attachment?
- Adding code before post title with the_title produces weird results
- does wp function the_content(); accept another tag inside
- Add back in child theme what the parent theme removed with remove_action
- Undefined variable error in new function
- How to remove a specific word at the beginning of the content and add it to the end of the content
- Writing a function to detect an event
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- How to properly set custom logo size?
- How to include any template using Shortcode fuction?
- Image loading function not working on archive.php template
- Add attribute only to first image of every post via functions.php
- Add a field into a shortcode of an extension
- Need To Change WordPress Meta Tags… Includes wordpress shortcodes
- Need to convert image url to a Base_64 data url with wordpress function..
- How to Add Shortcode to html img code?
- The_content and Preg_replace in loaded Iframe [closed]
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- Specify multiple categories for custom post template – FATAL ERROR
- first paragraph of the_content as meta description
- WordPress wraps span tags into p tags
- Using functions.php to include code that’s processed inline
- How to add a new image size and apply it to posts only?
- How to make a new function that includes a template
- Is it possible to use add_filter in an included file in the child theme’s functions.php?
- Function to insert missing image size attributes into img tags
- Add Adsense code between job listings – wp job manager plugin
- Image Crop Not Working
- Use existing image sizes for WooCommerce
- update_post_meta is Updating with two page id
- Problem in using Customizer
- Replace admin header logo with an image
- wp_get_attachment_image_src returns image on main domain, false on subdomain
- Why I can’t load my JavaScripts using an hook inside my functions.php file?
- Retrieve First Image Function
- Show admin page, only if function is being used
- Custom Image Size in Insert Media
- is_home() not working in functions.php file
- If is_single in functions.php
- How to conditionally add a widget via a hook in functions.php
- Overwriting TwentyTwelve template file with child theme template, but lower in the hierarchy
- Featured Image keeps cropping
- How to place a div inside a function that creates a div
- Using add_image_size in functions.php to get original uploaded file
- get_image_tag() html output : empty src attribute
- Changing the text of Upload/Insert on Posts and Pages Screen
- Simplest Way to Build Custom Archives Page?
- Filter for replacing the WP_query object for a given category
- Need To Resize Images Exactly Without Losing Image Details
- How to add or delete default value theme options while activate and deactivate theme
- Display ACF category image on archive and single template files