jarvis Posted July 29, 2010 Share Posted July 29, 2010 Hi All, I've a URL on my wordpress site which looks like: http://www.mydomain.com/2010/09/04/ What I'd like to do is get the 2010/09/04/ from the URL and place it into my page as follows: 04 September 2010 Any ideas how I can achieve this? TIA Link to comment https://forums.phpfreaks.com/topic/209227-wordpress-permalinks-getting-info-from-the-url-to-a-page/ Share on other sites More sharing options...
petroz Posted July 29, 2010 Share Posted July 29, 2010 That doesnt seem to be in the supported permalink tags... http://codex.wordpress.org/Using_Permalinks Link to comment https://forums.phpfreaks.com/topic/209227-wordpress-permalinks-getting-info-from-the-url-to-a-page/#findComment-1092843 Share on other sites More sharing options...
jarvis Posted July 30, 2010 Author Share Posted July 30, 2010 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... Link to comment https://forums.phpfreaks.com/topic/209227-wordpress-permalinks-getting-info-from-the-url-to-a-page/#findComment-1093032 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.