WordPress mucking my coding up!
-
Hello all
I’m working on this site here
As you can see, there’s some issues with the pictures lining up. What I don’t get though, is that my code worked in all browsers before implementing WordPress…I wasn’t aware that a little PHP code can completely screw around with my coding. Here’s this page before I put WordPress in it
My question is, how can I fix this problem now in WordPress? Also, how can I force wordpress to display the date for all entries even if they’re on the same date? My events page PHP code is this:
<?php /* Template Name: Events */ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="https://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <title> <?php if (is_home()) { echo bloginfo('name'); } elseif (is_404()) { echo '404 Not Found'; } elseif (is_category()) { echo 'Category:'; wp_title(''); } elseif (is_search()) { echo 'Search Results'; } elseif ( is_day() || is_month() || is_year() ) { echo 'Archives:'; wp_title(''); } else { echo wp_title(''); } ?> </title> <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please --> <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" /> <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <meta name="author" content="Eric Huang" /> <meta name="copyright" content="Children of Kibera, https://childrenofkibera.org" /> <meta name="subject" content="Children of Kibera" /> <meta name="Description" content="" /> <meta name="Keywords" content="" /> <link rel="stylesheet" type="text/css" href="https://s229351126.onlinehome.us/wp-content/themes/redrose/style.css" title="default" media="screen"/> <link rel="stylesheet" type="text/css" href="https://s229351126.onlinehome.us/wp-content/themes/redrose/projectevent.css" title="default" media="screen"/> <?php wp_get_archives('type=monthly&format=link'); ?> <?php //comments_popup_script(); // off by default ?> <?php wp_head(); ?> </head> <body> <div id="wrapper"> <div id="header"> <img src="https://s229351126.onlinehome.us/wp-content/themes/redrose/images/logo.png" alt="Red Rose" title="Red Rose" id="logo"/> <ul id="nav"> <li id="home">> <li id="about">> <li id="events">> <li id="projects">> <li id="contact">> </div> <div id="content"> <?php $my_query = new WP_Query('cat=4'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID;?> <div class="titles"> <h2>" rel="bookmark"><?php the_title(); ?> <?php the_date('m.d.Y'); ?></h2> </div> <?php the_content(__('(more...)')); ?> <?php endwhile; ?> </div> <?php get_footer(); ?>
Thanks so much if you guys could help me fix this!
Eric Huang
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘WordPress mucking my coding up!’ is closed to new replies.