• Resolved Doodlebee

    (@doodlebee)


    I have a list of Page links in my sidebar. I *must* “hard-code” the list, rather than using wp_list_pages, because using that strips my links of necessary information.

    However, I can’t find anything in the codex (or in the searches of both forums and documentation) of how to link to a Page without using that function.

    What am I missing? <a href=<?php WHAT GOES HERE? ?>Page 1</a>

    I haven’t got the “Pretty Permalinks” working yet (the jury’s still out on that one) so I can’t exactly just put in <a href="https://www.site.com/Page1.php"> because I don’t know if that will work if we *don’t* use “Pretty Permalinks”.

    Anyone got a quick answer for me? I feel like this is something easy and I’m just overlooking it somehow (or hey, I could be wrong – maybe it’s not!)

    Thanks so much ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • View the page, write down the ?=xx part of the url?

    Thread Starter Doodlebee

    (@doodlebee)

    Hey Han ??

    If I do that, when (or if) we switch to Pretty Permalinks, will it make the adjustment for me, or will I need to go back in and write down the “pretty” structure in the link?

    the ugly permalink will always work, regardless of how pretty you are. Err, your urls, that is. [edit: hmm, that reads a bit forward… apologies]

    So, if having a page link with the querystring on it doesn’t bug you, it should work forever.

    Thread Starter Doodlebee

    (@doodlebee)

    hehe…I know that – I guess I’m not being clear ?? What I mean is, if we swap to pretty permalinks, will it change the hard-coded ugly ones for me, or will I need to go back in and change the ugly to the pretty by hand? I know they’ll work regardless, I just wanted to know if I had to go back in there if we switched ??

    Agh – you know what? I was just thinking, no it won’t Dur. It’s not coded *dynamically* so that it can be changed (am I thinking correctly here?) So I would have to go in and change them by hand later on. I think.

    .htaccess confuses me. LOL

    Yep, you got it.

    Thread Starter Doodlebee

    (@doodlebee)

    cool. thanks ??

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    All pages and posts have an ID number visible on the manage screen. If you want to put links to specific ones in, use the “get_permalink” function:
    <a href="<?php echo get_permalink(ID_NUMBER); ?>">Linky</a>

    ok, that’s WAY better.

    Thread Starter Doodlebee

    (@doodlebee)

    Yay Otto! Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘don’t want to use wp_list_pages…’ is closed to new replies.