This should be able to return the url of the large image.
$largeImg = wp_get_attachment_link( $attachment_id, 'large', false );
There’s also this incase that doesn’t work.
wp_get_attachment_image_src( $attachment_id, 'large' );
Related Posts:
- How to change ID of an attachment in wp_posts and its related tables correctly?
- How to force regenerate thumbnails in WordPress posts?
- How to extract images of post and pages excluding header and logo image in wordpress?
- Converting a simple plugin to be placed inside of functions.php
- Set attached to state
- Converting Attachment to Images?
- Bulk Image Uploader to create new post from each image [closed]
- Adding Attachment Display Settings in custom media frame
- Redirect to another page using contact form 7? [closed]
- How can I automatically download all images from all imported posts, place them on my new host, and replace all the links
- Search by Attachment ID
- JSON API Plugin not showing Attachments id reused
- Copy/paste local images not working in WordPress
- Get all image in media Gallery with alt/title?
- How to wrap image tag into div for post only?
- Is there any hook to change media html in post? [duplicate]
- How to show post attachment image
- Retrieve post thumbnails
- WP galleries in posts after import. How do I do it?
- trigger email when post is published by someone a user follows
- Grab ID from post from plugin and use it to create an object
- Article content navigator in wordpress like mbaskool website
- WP::is_main_query() Not Working
- Overwrite add_image_size defined by theme
- Scrape a webpage for image and add it to post
- I would like to remove date display on photo preview
- Post deleted in trash [closed]
- Getting a list of the published posts
- How to relate 3 wordpress components with each other (Create database relationships)
- Change website directory safely to add a static page on startup
- Show related posts based of current ACF field name in a single page post (a loop within loop)
- How do I link an image in my plugin so it displays on WordPress?
- If post exists in the database – each time goes on `else`
- Custom Template for wordpress cpt plugin
- Embed PDF into wordpress
- Hook Scripts and Styles in WordPress
- Get data from wp_posts of mysql in to variables of wordpress-php script
- WordPress plugin: Getting posts where checkbox selected
- What hook can I use to modify custom post data before it is displayed on the page?
- get current page number with wp_link_pages()
- problem with register_activation_hook in plugin
- How can i summerize posts or news automatically in word press site?
- WordPress “Add new tag” button is not working
- Attachments broken after giving WordPress its own directory
- Delete data from custom table when deleting a post
- How to auto strip hyperlinks & images in wordpress post
- how can authors to define custom pages?
- Plugin is creating posts twice
- Some images on WordPress site are suddenly gone
- How to get the next and previous image title from attachment or gallery?
- Regenerate Thumbnails Plugin successfully updated my thumbnails but image src won’t change to new image size?
- “After file loaded” action
- Add_image_size not generating correct size
- Is there a way to insert multiple images into a post at the same time without using a gallery?
- Is there a Image Gallery which will load all my posted Images like twitter’s image grid?
- Multiple images per post – Show random image elsewhere
- Edit part of a post
- How to write a new file when new post has been published in WordPress
- WordPress Stats Plugin: Display Post Views [closed]
- WP Editor, save content and category on frontend
- Replace image urls(absolute instead of relative) by using filter in single page
- Plugin for TinyMCE to create reference to other posts
- Problem with ajax plugin for refreshing posts
- Add posts from other WordPress blog to the current one
- Link Posts to External URL
- Looking for a photo management solution
- I’m having several WP issues, especially with missing images
- How to Get Recent 5 post in My Title bar?
- How to get Recent Post From Each Category with Thumbnail?
- Plugin for visitors to edit content without logging in? [closed]
- How do I allow users to supply a photo/image to be used instead of the grey/white silhouette?
- help intercepting save_post through plugin
- WP Insert Post If user refreshes override new post
- Simple sildeshow/image-upload plugin?
- Summary and Comments on Main landing Page
- Method/Plugin/Hack to Start a Post with an Writing Outline?
- Elementor Pro display featured image on section -> style -> image using shortcode
- Update existing post dates to random dates and time
- What snippet do I need to type to show my ACF field show up on my theme?
- Offer Download Links for Product Images
- Can export gallery but can’t import it Wp all import
- Is there a way to make [Table Of Content] plugin while not using revision data?
- Why the internal link get converted into a comment?
- Is it possible to pin a post in second position from top
- how to remove share button from image overlay
- How to hide featured images of all posts falling under the same category in wordpress?
- Oops! That page can’t be found
- page duplication on wordpress that wont stop
- Bulk Image Resize for Media Library, but for ENLARGING instead of Shrinking
- Optimal image size for wordpress?
- Upload Image with a file URL and show dynamically on Frontend
- How to add height and width to images on a page(using WP Bakery) to improve Google’s CLS score?
- Help to Create a Simple Plugin to make a post
- How to change my 3000 Published post status to Draft using PHPMyAdmin
- Is classical wordpress eidtor a good option for me to include a large table with a large number of images on my webpage?
- Enlarge an image slider when click
- submit two file input fields in the same form
- New posts are not showing up on my front page
- insert og image link in wordpress post
- WordPress built-in compression of images? How well does it compare to Photoshop or Shortpixel?