• Resolved jessicamullen

    (@jessicamullen)


    Hi everyone. I work at a creative firm and we are currently trying to integrate wordpress into our site so we can easily post podcasts and news items. everyone thought this was a great idea until i spent the last few days actually delving into wordpress and realizing it is not too easy to just drop posts into a table.

    The site is currently a mess of tables and css text styles. I would like to just rebuild the site using wordpress as the CMS and i have read https://www.jonathanwold.com/tutorials/wordpress_integration/ but i know the good folks here won’t want me spending too much more time on this. is there a way to show the newest posts and side bar with a simple php include? i don’t know what i’ve gotten myself into here . . .

    thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Yes… but..
    If you are going to use WP functions, you need to load the engine first. That’s wp-blog-header.php

    So for the page that will hold the data, it needs (afaik) to be a .php page and at the very top should be this:
    <?php
    include(‘path/to/wp-blog-header.php’);
    ?>
    You can then use any / all WP functions and plugins.

    If your current index is .html it would be easy to redirect to the .php

    That help at all ?

    (of course /path/to/ would be a real url or path)

    Thread Starter jessicamullen

    (@jessicamullen)

    that does actually sound very helpful – i’ll try it out tomorrow. thanks for the help.

    Yes, it really does have to be a page with the extension .php. .html etc. just don’t get it….

    Thread Starter jessicamullen

    (@jessicamullen)

    So all I really needed to know was to include the wp-blog-header.php file in my index page. It works! Thanks so much for your help!

    Note that your index page is now pulling in WP, and all the overhead that goes with it. You might find your index now loads a LOT slower than it used to…

    -d

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Integrating WordPress into current NON-PHP site eek’ is closed to new replies.