New Posts
Live Radio
Welcome guest, is this your first visit?
  • Login:
CakePoker.com Affiliate Program
+ Reply to Thread
Results 1 to 1 of 1
  1. #1
    d[-_-]b
    My Status
     

    Add as a friend
    Join Date
    Apr 2009
    Location
    (◣_◢)
    Posts
    890
    Blog Entries
    2
    Feedback Score
    16 (100%)

    Default Adding wordpress to a static site question

    Hey guys,

    Im wondering if one of you can help me out here, ive added a wordpress blog to a static php site. Its all grand for the most part but one of the people I did it for gets errors when updating.

    This is the method I used to get it to work.

    Display Latest Post on Static PHP Page « Chinmoy29's Blog

    Thats fine but the person having problems edits the static site on his computer using microsoft visual, he is getting an error when debugging because he does not have access to the wordpress files. He thinks if we put the call in an include it should work. Ive tried every way I can think of but it wont work. Do you have any suggestions how I would get this to work?

    This has to be at the start of the index page..

    Code:
    <?php
    header ("Content-Type: text/html;charset=utf-8");
        define('WP_USE_THEMES', false);
        require('blog/wp-blog-header.php');
        query_posts('showposts=6');
    ?>
    Is there anyway to put that in an include file and call it properly? Every time I try I get database errors.

    Also, do you have any suggestions for speeding up wordpress? ive looked and it looks like w3cache is the thing but do yous have any other tips?

    Cheers
    Diversify with Shareasale & if your a developer its the place to Sell your Stuff.
    Awesome Wordpress themes & html templates from $20 - $50 | Premium plugins & useful scripts form $5


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.1.5
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO 3.6.0
Affiliate Program Consultant