does your custom index page call the standard header for your theme?
You must use the header.php and footer.php template files in your custom template as both files contain hooks that are essential for WordPress.
No, this is the (require code)
<?php
require('./wp-blog-header.php');
?>
The next place I’m using php is in the body tag to populate the body with my wordpress posts.
@esmi
WordPress states in Integrating WordPress with your website to the code
<?php
/* Short and sweet */
define('WP_USE_THEMES', false);
require('./wp-blog-header.php');
?>
or
<?php
require('./wp-blog-header.php');
?>
where both basically state that WordPress is not to use any themes (‘WP_USE_THEMES’, false).
Are you running this inside your WordPress site? Only the approach you’re using is for sites that are separate from WordPress.
The site is my own hosted site, and I’m using wordpress for the blog section of my site titles “lab” hence the (derekknox.com/lab) url.
I just changed the
<?php
require('./wp-blog-header.php');
?>
To the first line of my index.php file. It now validates this part, but the excess html makes the RSS invalid. Check here and let me know what you think (thanks for the help by the way!)…
validation
And my RSS url now is shows the difference
http://derekknox.com/lab/?feed=rss2
You need to use http://feedvalidator.org/ for validating feeds (as opposed to web pages).
I’d suggest that you customise the default index.php file in your theme rather than trying your current approach.
I also noticed that you have unwanted artifacts from MS Word in your posts. Don’t paste content from Microsoft Word into WordPress as the pasted text will also contain Word’s own formatting. Sooner or later, this formatting will stop your pages from being displayed correctly (if at all) in Internet Explorer. If you cannot possibly manage without Word, paste your text into NotePad (or another text editor) first, then copy from NotePad into WordPress.
Or use the inbuilt Paste from Word option in the Visual Editor. Or Windows LiveWriter.
WC3 Feed Validator does the same thing (for feeds as opposed to web pages). My issue is obviously that the feed has web page elements.
I thought of possibly implementing that approach and may eventually resort to it. I am aware of Word pasting its formating, but was unaware that some of my posts contain this, I’m assuming they’re from older posts when I may have originally written the post in word. Thanks again for your help.
WC3 Feed Validator does the same thing
Oops! My bad! I got my validators confused.
I am aware of Word pasting its formating, but was unaware that some of my posts contain this
Try searching on “MSOnormal” (though I may have the casing wrong there). Spotted a couple of references when scanning the feed,