You could try:
<?php
if ( ! empty ( $_SERVER['HTTP_REFERER'] ) )
{
?>
<a href="https://wordpress.stackexchange.com/questions/17750/<?php echo esc_url( $_SERVER["HTTP_REFERER']; ) ?>">Go Back</a>
<?php
}
Related Posts:
- Retrieve Product category ‘NAME’ by product category ID – WooCommerce?
- Could not insert term into the database
- Activate Gutenberg in category-descriptions
- How to show subcategories in categories else show posts
- How would I increase the Author Role to be able to add a new category?
- How to remove the parentheses from the category widget
- Randomise results from a category page?
- How to get the url to tag & category base set by the user?
- Adding Custom User Profile data based upon Categories
- Only show category to certain user levels without plugin
- How to: 301 Redirect /category/ to /customname/
- Custom Query to search through categories
- Root level category, tag, author and archive pages to work
- How can I make wp_list_categories output li with category-slug as class, for its children?
- Get sticky post from category?
- Display one latest post from multiple categories
- Archive pagination causing 404 with permalinks structure
- Remove word “Category” from WooCommerce product page [closed]
- Get a list of Terms for a specific category
- Remove Archive Headline and Archive Intro Text fields on category and tag archive pages in WordPress Admin with Genesis framework
- How Do I Merge Categories With phpMyAdmin
- Display name of the last child category
- Edit the markup of categories list
- Show category children, one level
- a-z list, categories and sub categories in loop
- Category slug $_SERVER[‘REQUEST_URI’];
- Viewing category pages without the word ‘category’ in URL
- wp_dropdown_categories and custom taxonomy + custom post type
- How to view WordPress’ default category IDs?
- Random taxonomy category list
- Linking products to categories
- how to change template?
- Multiple Domain Names – One WP Install (non-Multisite) – Default Each Domain name to Product Category WooCommerce
- Show all posts for a specific category/author
- Hard coded main navigation
- Resort get_categories
- How to call custom category field data in theme?
- Display posts separated by Category in Author’s page
- One Specific Category To Permalink
- WordPress category widget only show categories with children
- The arrangement of categories always change while posting article
- Woocommerce custom category page with pagination [closed]
- Menus don’t work after 4.4 [closed]
- Custom post and category template pagination problem
- How to list all categories in three divs dynamically based on the quatity of categories?
- Grouping categories by genre
- how to “not” display new posts with a specific category on the main page?
- WordPress alphabetical A-Z custom post type post result display
- Count category views – Is it possible?
- wp_dropdown_categories not showing option as selected
- Combine “category search order” with “don’t display child posts”
- How to check if a post belongs to a category that has only 1 posts?
- category__not_in and id values from variable
- How do I use just one category’ posts on my home page?
- If x comments in a post move post to category y
- Count tags for a specific category
- wp_list_categories walker without links on categories that have subcategories (to make a nested dropdown menu)
- How can I display tags as categories?
- On the Blogpost I have categories showing, is there a way to exclude a catgegory like ‘Media’?
- Adding additional content on post depending on post categories
- Set category page title in custom theme [closed]
- Root category template?
- Posts from a category on homepage with category archieves page default css
- wp_list_categories not excluing multiple ids
- How to use wp_list_categories with plugin category?
- Custom meta boxes ID prefix showing on first category but not others
- Exclude category from foreach loop
- ID of last created category
- Theme modification for custom category menus
- Custom css per category and per single post belong in each category
- Show Secondary Sidebar on Category pages (archive)
- Get categories of queried posts
- Limit Loop to One Category
- wordpress taxonomy query posts
- Conditional category query breaking?
- Different header for each category
- 3.1 post formats and specific categories/custom taxonomies
- sidebar troubles, taxonomy trouble
- Code for Category, Tags, Archive URLs
- Duplicate new categories across multisite network
- Display all subcategories from parent category
- Custom Loop with certain number of one category
- How to show WooCommerce Categories on ‘shop’ page instead of products?
- How to list all subcategories from all categories but not from a certain category
- How to create Child Category page from scratch at wordpress?
- Automatically create tags and merge with categories
- How to insert category to post via php?
- How to list all categories a post is in, but exclude current post´s category on single post page
- Show Subcategory Name Instead of Parent Category
- Get category id of next / prev post inside the_post_navigation
- Limit Category/Tag Dropdown To blog_id in Multisite Install With Global Categories/Tags
- Code to display category-specific single.php is overriding normal single.php, too
- Media Library filter returns undefined function get_current_screen
- Custom built theme won’t filter categories
- WP_query exclude a category unless it has more than one catagory
- get IDs from links categories
- Display all subcategories for a product category in woocommerce
- Narrow Down a Shop Page Results Based on a Product Tag in WooCommerce
- How to control order when displaying child categories
- Trying to WP_Query a category