Forums

Read the Page URL (1 post)

  1. RockyMtnHi
    Member
    Posted 2 years ago #

    In WordPress when I use the php call:
    $_SERVER["SCRIPT_NAME"]
    the result is:
    /index.php
    when the page is actually:
    /mypageslug/

    The problem is that I need to read the URL and have it return /mypageslug/. Is there a way to do this?

    Thanks in advance for your response.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.