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 do I check if I linked to a post before I delete it?
- removing inline styles from wp-caption div
- How to use “Add link” pop up for a WordPress widget
- Add custom Attachment Display Setting for images
- How to get Images included in Post
- disable WP automatically inserted line breaks after an image
- Find the post an attachment is attached to
- Delete the original big size image after upload and leave only 3 images crunched by media gallery
- Portable Post Links
- Post slugs and images cannot have same name?
- Add existing images from Media Library in to custom gallery
- Replace image attributes for lazyload plugin (data-src)
- How do I detach images from posts?
- WordPress: How to get the current logged in author page URL?
- Download external images if post is publish
- How do I sort (order) the results from `get_children()`?
- Keep getting same permalink with WP_Query?
- upload image in a meta box
- Can I load posts via Ajax?
- 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()?
- Unattaching images from a post
- how to display post content without post image?
- Is it possible to add a first and latest posts link?
- How to wrap every image in a post with a div?
- upload featured image from front end using wordpress add media button
- Get current users post URL?
- How do I create Comma Separated list of attached image ids?
- Navigation link to specific user page
- Get post embedded image caption
- wp_list_categories link to first post of category instead of calling taxonomy template
- Link for the page archive for posts, like using custom post types with get_post_type_archive_link
- Linking to page with all posts
- Add an image box besides featured image?
- Remove image from post also removes photo from media library
- Limit function to specific post category
- Post taxonomy from exif data
- Remove inline width from figure
- 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
- Adding a text link under the post title in the lists of posts
- Remove permalink from images when inserting into post
- How to get only text from wordpress post content?
- if I create ‘front-page.php’, then how do I link to post index?
- Get all images out of the posts content
- how to replace embedded “full” sized images within a post with the “large” ones
- WordPress Theory Lesson – Image Columns within posts with alignment?
- Setting up navigation links for posts (first, prev, next, last)
- Batch process: remove first image from post content
- how can I put an image in a post with original size
- Show featured image next to post-teasers in Genesis Framework?
- Get image from post’s gallery
- Image Insert into posts and pages not working after 3.2.1 update
- How to retrieve the postID in a “image_send_to_editor” hook function?
- Copying and pasting emoji in a wordpress post
- Direct link to “New post” in specific category?
- 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
- How to display featured image without it appearing in post?
- Can I use images as anchor tags with
- How should I add links to other pages/posts from my post?
- Featured Image uploaded, attached and set but only appearing in the media library
- Load post attached images on a single page site with fancybox
- creating front end image uploader that uploads images as posts
- Errors when uploading images in WP 3.5
- 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?
- CSS: How can I show a photo beyond the template’s column, but contained within the browser window? [closed]
- Get all attachment by post excluding featured and content inside
- Custom loop pagination links not working
- How to Next and Prevous Navigation Buttons on the end of the page with custom image Using Wp Post Navigation Plugin
- wp-cli post create & media import issues
- Get attachments for posts that belongs to a specific category
- get_adjacent_post by language
- List all categories with featured image from post?
- How to handle broken links created by permalink/slug changes?
- Get all images in post and comments like Twitter before post title
- Is it possible to paste a link without tags and make it directly a link in a post?
- Show only posts with images and a fixed amount of posts
- Issue where WP Featured Image will not display
- 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
- Thumbnail Image to go in the post aswell
- Remove Featured Image & All Media Uploaded to the Post
- How to add a class to edit_post_link?
- What are the benefits of setting a “featured image” for a WP blog post?
- preg_replace not removed “class”
- Can’t get full post title if there a spaces in title
- update image path with words starting uppercase to lowercase chars
- Adding a user’s ID behind the tag ref link address
- All Posts Linking to Author Posts directly
- How to only publish posts with image in it
- Uploading images in custom post form