• Resolved watersedge

    (@watersedge)


    Hi everyone, like we all once were I’m new to WordPress, so I’ll cut to the chase: I am planning on using the main WP script as the homepage for my website (I can send the link to people personally, just rather not post it since i host it off my home computer).

    What I want to be able to do is take an image gallery, or some other page that I design myself (or some other script) and be able to insert all or some of the link Categories/links into a header by an include or something like that.

    My question is, how would I go about taking a brand new HTML (PHP) file with my own content and adding the links and categories to the top (or side or wherever). I suppose I could make direct calls to the database, but I just wanted to know if there was a WP call I could make.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Correct me if I am wrong but impression is that what you want is having WP functionality (functions:) in non-WP files.
    If this is what you are after, any .php file can be made “WP-aware” by adding at the very top – before everything:
    <?php
    require('./path-to-your-blog/wp-blog-header.php');
    ?>

    After having this, you can use basically any WP function – template tag in those files.

    Thread Starter watersedge

    (@watersedge)

    Hmm, I believe I tried that and I thought I ended up just getting the whole page again. So lets say that I took a blank page and tossed that in, are you familiar enough with the calls to say, get the links from a particular category?

    Thread Starter watersedge

    (@watersedge)

    Thanks, that did work, and I should be able to figure everything else out just fine. thanks!

    Thread Starter watersedge

    (@watersedge)

    Update: This is what I was trying to do.

    https://e-brian.dyndns.org/photos/index.php

    At the top, to be able to add WP links to other pages. Your help was perfect!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Links and categories in non-WP pages’ is closed to new replies.