Hey Guys! First I wanted to wait until my site is finished until I tell you how easy it was and how amazing I find WordPress to be. Well, of course I still do, so my thanks to those involved. Awesome Job!
Now. I got every page to validate (through tidy). I don’t quite know how I did it but it worked. (I had to insert divs etc where they make absolutely no sense to me.) And that’s pretty much the point: I don’t know what I do, I just do it – works out about half the time. : )
Then there’s this one page I copied together from bits of php from this very board and the existing php files. It lists the recent 2000 posts (=all) and only displays the titles. For easy, imagefree browsing.
Here is the entire code of the template used, it validates:
?> <?php get_header(); ?> <div id="content" class="narrowcolumn"> <h2 class="pagetitle">List of 'Everything'</h2> <ul><?php get_archives('postbypost', 2000); ?></ul> <?php include (TEMPLATEPATH . '/searchform.php'); ?> </div> <?php get_sidebar(); ?> </div>
Thing is: as soon as I try to format the list with css (I adjusted ‘h6’ for this purpose) I get AT LEAST 6 WARNINGS. (Missing /h6, missing /div, inserting implicit ul, missing /ul, trimming empty h6,…)
It should look like this:
<h6><?php get_archives('postbypost', 2000); ?></h6>
How do I tell the browser to interpret the results of ‘get_archives(‘postbypost’)’ as defined in h6 (and NOT as bulleted list)?! The right way!?
h6 already features list-style-type:none but as soon as I remove the
- all hell breaks loose.
Somebody with basic CSS knowledge should get around this fairly quickly, I figured, so here it goes – my first post.
THANK YOU for your time! Yay WordPress!
- The topic ‘Please help me to validate! (Tell php to use CSS)’ is closed to new replies.