Using WordPress as piecemeal in existing site?

After some solid advice from people on here about using WordPress for a small (six page) website, I wanted to broach another question regarding using WordPress for a non-blogging site. Yet, I know my client would like to update various, but small portions of their site from time-to-time.

I won’t be installing WP in the root, but a sub-directory and have all my core site files sitting in the root.

Read More

Here are my questions:

Can I include content from Pages in WordPress and output that content on any page outside of the WP install directory? Is there something specific I would need to include?

Do I have to use a Theme or can I still use my already built CSS?

I’d like to be able to use my own CSS for the site and not have it be tied to a Theme – is that possible? Meaning I use www.example.com/css/styles.css vs www.example.com/wp-content/themes/styles.css.

I also have a slider comprised of three DIVs for each panel, can I pull in that specific Page with that markup for the slider?

Can I also make my own queries for data as well?

Is there anything that I won’t be able to accomplish or advise against doing?

I’m mostly concerned about having to use a Theme, mostly because I don’t know if I’ll need to use it or not.

Thanks for any help.

Related posts

Leave a Reply

3 comments

  1. Can I include content from Pages in WordPress and output that content on any page outside of the WP install directory? Is there something specific I would need to include?

    You can load WP engine in any PHP file, see integrating WP with your website in Codex.

    Do I have to use a Theme or can I still use my already built CSS?

    You can skip theme functionality completely, partially or you can create custom theme with your own CSS and code.

    I’d like to be able to use my own CSS for the site and not have it be tied to a Theme – is that possible? Meaning I use http://www.example.com/css/styles.css vs http://www.example.com/wp-content/themes/styles.css.

    Yes. Nothing prevents your from outputting arbitrary CSS in template over theme’s.

    I also have a slider comprised of three DIVs for each panel, can I pull in that specific Page with that markup for the slider?

    If you have sufficient understanding of PHP and learn some basic WP concepts – easily.

    Can I also make my own queries for data as well?

    Somewhat vague question. If you load WP engine you can use its API for database access. You can also query database directly but that would be much less secure and foolproof (especially if writing to it).

    Is there anything that I won’t be able to accomplish or advise against doing?

    Nothing you described so far seems extremely complex or impossible.

    Overall, since from description the site is small and doesn’t have any special functionality, I’d consider just migrating it to WordPress completely.

  2. If you are a PHP developer you can include the wp-load.php in any PHP file to load the wordpress environment. From there you can access anything in WordPress such as the database connection or WP functions.

  3. Easiest way to slowly change to wordpress:
    Note: This really is a stupid way to use wordpress but it will work in 90% of all cases.

    Step 1
    install wp

    Step 2
    Setup up wp pages and name them like the ones you already got (so your nav-links should point at your new wp-pages – see the slug below the title at page edit screen).

    Step 3
    Open up one page after the other and paste your existing static html page code in the html-editor (don’t forget to press “update”).