• Christiaan

    (@christiaan)


    I currently have a links page which I created and edit manually via the Page edit function in WP. I’ve used an html table to give myself two columns:
    https://last-straw.net/links/

    What I’d rather do is put all these links into my database and then call them onto the Page using PHP.

    The question is, how? I’m guessing a template page? If so, what code do I need to put in my template. And how would I order and format the page so it looks as it does now?

Viewing 5 replies - 1 through 5 (of 5 total)
  • niziol

    (@niziol)

    In the Pages see the Default Theme Page Templates.

    Please make sure you read through the Codex and search before you post, it keeps everyone happy!

    Cheers,
    Michael.

    Thread Starter Christiaan

    (@christiaan)

    Thanks for the tips Michael, however they don’t cover all my questions. In particular “how would I order and format the page so it looks as it does now?” I don’t actually know what I’m looking for so searching is a little difficult. Also, I don’t find the Codex search tool very useful. Maybe I’m using incorrectly?

    moshu

    (@moshu)

    Just save your page.php template as links.php.
    Cut out The_Loop.
    In the post/content area insert the Links Manager tag that you want to use for displaying your links.

    Go Write > Write Page and create anew Page; don’t write anything in the text input area. Save.
    You are done.
    Don’t forget to put the line at the top of the template as described in the Page Templates section, linked above.

    Thread Starter Christiaan

    (@christiaan)

    Thanks moshu, but this still doesn’t answer my question of how I get it to look like it does now (unless I’m missing something?): https://last-straw.net/links/

    If I follow instructions so far all I get is one column of links and no obvious way to reorder them, whereas my current links page is two columns and ordered how I would like them: https://last-straw.net/links/

    Is CSS something I should be looking into?

    niziol

    (@niziol)

    OK, I understand what you’re trying to do now! I think I’ve been celebrating ‘himbo’ days or something lately.

    The Codex article on Template Tags (Link Tags) gives you a few options, I think you’ll just need to read through it and then figure out the tag formatting and what-not.

    I haven’t done a links page myself, so I don’t have any “how-to” pointers for you, but the various link tags are just like any other template tag, you’ll just need to use the one that you think is best, place the proper tag parameters and you’re in business.

    Good luck,
    Michael.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Dedicated links page: how to create and how to format?’ is closed to new replies.