Jump to content

Wordpress Permalinks - getting info from the url to a page


jarvis

Recommended Posts

Odd as that's definetely the url.

 

Regardless of ep or not, is it possible to get those values in the URL? I would normally use something like:

$pageURL='';
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
$filename = basename($pageURL);
echo $filename;

But all that does is show the last part, in the above example 04.

Hmmm...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.