I have some hard coded links in footer. which i want to link to pages. But don’t know the url on which i will upload the site.so how can i reach out to that page in anchor tag.so it opens up same page despite whatever the url is?
and the url i got was
The requested URL /abc/http://localhost:8888/abc/ was not found on this server.
obviously there r two problems here.
1. its appending to a wrong url
2. it doesn’t have that page id appended to the page.
what am i missing?
Edit : i removed the home_url(‘/’) and it worked fine. i am right?
I have a image in home.php and i gave it link like you told.its showing and clickable but get_permalinks has the page name but it comes to index.is it coz of inside loop too? how can i break out of it in home.php and footer.php
More specifically, you need to be able to recognise where the Loop starts and ends – especially in a situation like this. For example, the main Loop would not extend to the footer of the page in the vast majority of themes, so I suspect there might be a problem in your theme. Have a read of The_Loop.