Skip to content

Mstoic

  • Home
  • Start Here!
  • Best Deals
  • Facebook Tricks
  • Privacy
  • Resources
  • TOC
  • Tools
    • Web Tools
      • Stop Watch
      • QR Code Generator
      • Adsense Code Converter
      • Blogger Sitemap Generator
      • Difference Between Two Texts
      • Vacation Checklist
      • Twitter Symbols
      • Count Down
    • Investment
      • SIP Calculator
      • Power of Compounding
      • PPF Calculator
      • FD Calculator
  • About Us

WordPress – Get The Current Page URL

Editorial Team | December 30, 2015April 18, 2021 | Wordpress |
In WordPress, if you want to get the current page URL on any page, then here is a small snippet you can use. It works on all the pages, be it a single post page, a single page, a category page, home page, or any other page.

Related Articles

  • 4 Ways To Enable Gzip Compression In WordPress
  • Optimizing Database For WordPress Websites Automatically [Free Plugin]
  • Google Authenticator for WordPress
  • Turn OFF Autosave In WordPress And Reduce Database Size
  • How to Edit .htaccess File from WordPress Dashboard Itself
One more advantage of using this code is that it cleans the URL, and gives you the output free of query variables. Use this code in your theme/plugin to get the current page URL in WordPress.
Happy coding 🙂
Previous Post

Solving The Error 497 In Google Play Store

by Editorial Team

Next Post

How to Block Windows Updates at Router Level

by Editorial Team

Tags
  • WordPress Current page url
Recommended Next
Add Character Counter To Excerpt Box In WordPress

Your Comment Cancel reply

Follow Us

Like us Follow us Follow us

Categories

  • Tricks (93)
  • Facebook (83)
  • Tips (76)
  • Windows (67)
  • Wordpress (39)
  • Android (38)
  • Internet (33)
  • Antivirus (30)
  • How To (29)
  • Webmasters (25)
  • Customization (25)
  • Downloads (21)
  • Utilities (21)
  • Gmail (20)
  • Windows 7 (19)

Related Articles

  • Reverse a String using StringBuilder