You might use $_SERVER['HTTP_REFERER']
but take in mind that is not always sent so check for its existence and think about a fallback!
Related Posts:
- how to grab first link in post… and of course call it
- Load post content into div with ajax
- How to use “Add link” pop up for a WordPress widget
- Add custom Attachment Display Setting for images
- disable WP automatically inserted line breaks after an image
- Delete the original big size image after upload and leave only 3 images crunched by media gallery
- How do I detach images from posts?
- Keep getting same permalink with WP_Query?
- upload image in a meta box
- How do I use element instead of tags in WordPress post content having webP support?
- How to remove images from showing in a post with the_content()?
- upload featured image from front end using wordpress add media button
- How do I create Comma Separated list of attached image ids?
- Link for the page archive for posts, like using custom post types with get_post_type_archive_link
- All my inserted images gets a link to the full image even if it is already full size image
- Link button is not working while editing a post in Firefox [closed]
- get custom image size
- How to get only text from wordpress post content?
- Get all images out of the posts content
- how to replace embedded “full” sized images within a post with the “large” ones
- Setting up navigation links for posts (first, prev, next, last)
- Batch process: remove first image from post content
- How to retrieve the postID in a “image_send_to_editor” hook function?
- Comma separated all attached image ID numbers except featured image ID number
- Modify Image Source With The_Content Filter?
- Removing rel=”nofollow” from links posted in Post Content
- Delete post by giving its link
- Load post attached images on a single page site with fancybox
- Format the Layout of Images In The Edit Post Textarea?
- Set size for attachments
- I have a site where attachments in the wp_posts table have guid values of guid, how did this happen?
- How to Next and Prevous Navigation Buttons on the end of the page with custom image Using Wp Post Navigation Plugin
- get_adjacent_post by language
- Show only posts with images and a fixed amount of posts
- How would one change the default url structure of attachments?
- If statement to check if post has image
- Gather posts into a cart/lightbox and share with another user
- What are the benefits of setting a “featured image” for a WP blog post?
- Can’t get full post title if there a spaces in title
- update image path with words starting uppercase to lowercase chars
- How to only publish posts with image in it
- Uploading images in custom post form
- Make insterted image point to post url instead of attachment page
- how to give multiple post thumbnails to a post
- How to allow multiple thumbnail upload for Posts?
- get_children returns older images
- How to display post title inside thumbnail?
- How to remove text and retain in caption image using the_content function
- How to make Link to go on the first post
- How to get all inline images in post content? [duplicate]
- Exists filter or action that change Add New Post link?
- Inserting Media to WordPress Posts
- Author Avatar as default first image
- Internal linking to posts permalink fail because of spaces and stripe at postname
- Link post images to post
- Only show featured image on exerpt and exclude images in post
- Link from Post to Another Post Via Clicking on Words within Original Post
- WordPress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?
- Link to older links
- How to create several Post pages
- how can display a post on home screen without images
- Changing The Default Header POST Title and Description text by category in wordpress
- Site/Post preview is not working on all social media
- How to exclude native lazy loading from first image in post content?
- Edit post & page option does not display on latest wordpress
- Rewrite image links from attachment id to attachment link
- Delete media from the post but keep my featured image and post
- Prevent the automatic URL linking added in last update
- WordPress 5: prevent link from displaying page title instead of URL
- Pinterest button shows image options from different posts
- Change the size of the featured image for post?
- Some custom post types did not return an object
- Thumbnails and images in the blog post are not loading
- Modified core/image rendering not showing in posts – only on pages
- Blog images not showing on homepage
- Integrate video and iframe in a post type gallery
- how to create other sizes of original image in one go wordpress uploads
- Output wp_link_pages as raw url
- Embed image in post from external url
- Is possible to do this from function.php
- Stop images from being displayed on the front-end of the site
- Post List Widget with custom posts and editing the Read More Link
- Relative Image Urls in Posts are starting from root – Not from WordPress Address (URL) at General Settings
- WordPress Media URLs?
- SQL query to remove first image in all posts
- My posts section for logged in user
- WP Gallery Image Page Issue When 2 galleries share one image
- Modifying the permalink href for posts with jquery
- Why can’t I see my attachment page information for an image?
- Assign custom class to post content images
- Is there any SEO impacts on unattached vs attached images for a post in WordPress?
- After the local installation of an old WP website I can see the homepage but I can’t access to the articles, why?
- Import alt text in set_post_thumbnail
- Broken images after importing posts and opening in Gutenberg
- How to automatically convert a form with HTML link into post
- Search doesn’t display posts with images
- Displaying all images from a WordPress post (including media library)
- How to move all images in a post to a single gallery for a bunch of posts?
- Inside post image title has been posting as a post title on my main post page
- Optimize blog that serves hundred of images and videos