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 Quote Link to comment 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 Quote Link to comment 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.