• Hi, I have got a question, i’s sure it’s got a simple answer, it’s just one of those things when your new people don’t always make clear, but I will try and explain it as clearly as possible.

    My question is – How do I link to another page? In the below scenario

    OK: I am building a custom wordpress theme (a local host installation), in particular modifying an existing html site to fit onto WordPress. I have worked out how to add a page if I register it in the wordpress back end, i’e ‘add a new page’ and then use the menu to make it show up on the site. BUT! = is it possible to link to another html or php page without registering it in the back end??? e.g is there a line of WP code to do this? i.e I want to see if it’s possible to go from index.php (which was previously index.html) to websites.php (which was previously websites.html) without doing it via the back end, just a direct link in the WP code. This may sound simple as I say, but I can’t find anyone explaining it clearly. Thanks in advance Emma X

    • This topic was modified 6 years, 6 months ago by emma36.
Viewing 2 replies - 1 through 2 (of 2 total)
  • lisa

    (@contentiskey)

    “is it possible to link to another html or php page without registering it in the back end”

    you can add a link to an internal or external url.

    <a href="#'>this is my link</a>
    replace # with complete desired link URL
    put the code in your WordPress editor area.

    Thread Starter emma36

    (@emma36)

    Hi Lisa, I’m asking about what is the correct syntax to add a link into the source code. i.e I open the index.php source code file and how do I add a link to wordpress.php? without going into the back end of the wordpress editor area on the back end.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to link to another wordpress page internal’ is closed to new replies.