• Resolved kannued

    (@kannued)


    I have successfully integrated WP within my design. The blog works. But when I go to validate it at w3, the validator has problems with the WP’s doctype inside the design.

    DocTypes are usually at the beginning of the page. That validates fine. But then where I have included the WP, it has a problem with its DocType that appears in the middle of the file. Unfortunately, I can’t give you a link because it is considered Google Juicing. So I don’t know how this can be solved if a person can’t see the problem.

    Gayle

Viewing 13 replies - 16 through 28 (of 28 total)
  • Did you try the URL?

    <?php require('http://www.kiplingcitizen.com/wp-blog-header.php');?>

    Thread Starter kannued

    (@kannued)

    The URL should not be used in the the path.

    I don’t think you can have it in a .html file. It has to be in a .php file!

    Your page should have a php, phtml, or phtm extension if you want to execute PHP on it.

    @moshu: Sorry to muddle the issue, but other folks have reported being able to use wp-config.php with sucess. Here’s one:
    http://wordpress.org/support/topic/82371?replies=20#post-423237

    It HAS to be wp-blog-header.php? Is this perhaps new to this latest release of WP? I’ve created a page that calls the RSS feed function from WP by including wp-config.php, not wp-blog-header.php. This is obvisouly not a support question, but I want the correct information.

    Thread Starter kannued

    (@kannued)

    I have my htaccess set to handle php script as html
    In this file below, which has the duplicate doctype
    http://www.kiplingcitizen.com/temp-backup.html

    tsquitar,
    I looked on that guy’s view code at http://www.amateurillustrator.com/index.php, and I can’t see his use of php require. I did a search for “require” without the quotes and nothing showed up.

    Thread Starter kannued

    (@kannued)

    Why would the code disappear in my own page?

    It is supposed to be located here

    <td width=”16%”><img src=”graphics/left-banner.gif” align=”top” alt=”advertise” /></td>
    <td width=”68%”><?php require(‘/u/k/kcit0806/www.kiplingcitizen.com/wp-blog-header.php’); ?></td>
    <td width=”16%”><img src=”graphics/left-banner.gif” align=”top” alt=”advertise” /></td>

    I programmed it as such, save as such, and ftp it in ascii, then that php require line disappears!

    Thread Starter kannued

    (@kannued)

    This is a known bug when code disappears

    http://wordpress.org/support/topic/54927?replies=4#post-427524

    You will not see <?php require('/u/k/kcit0806/www.kiplingcitizen.com/wp-blog-header.php'); ?> when you view the source of a page with a browser because this php script gets executed on the server. This goes for all server-side scripting languages. Basically, the server reads the contents of the file, does whatever it says and then outputs it to the browser. If you could see it than that means it has been handled incorrectly.

    Thread Starter kannued

    (@kannued)

    I see! I can’t see the code in the viewsource because it is being handled correctly. But I did not get any output. There was a blank section where the blog should have been.

    Thread Starter kannued

    (@kannued)

    So now what do I do if the php is executing correctly?

    http://www.kiplingcitizen.com/temp.html

    Below shows the WP is working but with the duplicate doctype, etc.

    http://www.kiplingcitizen.com/temp-backup.html

    Here, I was ready to give up. And now there is still hope to integrate!

    Most modern browsers will pick up the slack on a lot of invalid code. This isn’t recommended as you will not be able to be reasonably sure that your site will work for your intended audience. I believe the amount of time you spent putting WP into your site could have easily yielded success with you putting your site into WP. Your site seems to be tentatively working but I am positive you will be running into a multitude of problems down the road when you want to add more functionality in the form of plugins, upgrades, etc…

    Thread Starter kannued

    (@kannued)

    I have never even thought of putting my site into WP. I guess I should read up on that.

    What I mean by that so there is no confusion. Find a theme with the basic format you want and then alter the css to have your original site’s look. Your current navigation would be a little tricky, but if your the one who originally created it than I think you’ll be able to do it just fine. This way you’ll be able to get the full amount of functionality and benifit out of WP instead of associating with a lot of future headaches.

Viewing 13 replies - 16 through 28 (of 28 total)

The topic ‘Validating Integrated WP within design’ is closed to new replies.