Thread Starter
icswp1
(@icswp1)
Using /contact/ works. However, the reason it is coded this way is to minimise future changes easy. Say, you want to change the contact to some other location, all you have to change is point that id 28 in the database to the new location. No need to change code. If you hard code, then you have to change the code everywhere. BTW, the only page where the code is not executing is in the home page (Font Page).
Thread Starter
icswp1
(@icswp1)
Yes the http:// is there. It gives not available error because the url generated by the code is like this
http://%3C/?php%20echo%20get_permalink(%2728%27);%20?%3E
In pages where it is working the executed code produces an url like http://mydomain.com/contact/