Hi,
Im having a problem with my home.php configuration, it seems it is broken or something is wrong. My main page does not show because it says the website maybe configured incorrectly.
I have two questions:
1. I replaced the picture slider with a you tube video but it does not show in the home page of the website.
2. There must be something wrong with the codes because if you type
www.watwatworld.com, it says the website is configured incorrectly. Please help me solve this problem. Below are the php codes.
PHP Code:
<?php get_header(); ?>
<div id="content">
<div id="homepage">
<div id="homepagetop">
<h3>"WATWATWORLD SPECIALS"</h3>
<object width="560" height="315"><param name="movie" value="http://www.youtube.com/v/XkcyfCeMUwo?version=3&hl=en_US&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/XkcyfCeMUwo?version=3&hl=en_US&rel=0" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>
<strong><a href="praktis lang!"> FOR ORDERS, EMAIL US AT [email]entrepinoy@gmail.com[/email]</a></strong>
</div>
</div>
<?php endif; ?>
<?php // end ?>
<div id="homepagebottom">
<div class="hpbottom">
<h3>WATWATWORLD ONLINE MARKETING AND LECTURES - BLOGGING, HOW TO SELL AND EARN ONLINE & MORE! </h3>
<?php $recent = new WP_Query("cat=".get_theme_mod('featured_bottom')."&showposts=".get_theme_mod('featured_bottom_num')); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img class="thumb" src="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=<?php echo get_theme_mod('featured_bottom_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_bottom_thumb_width'); ?>&zc=1" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<?php endif; ?>
<strong><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></strong>
<?php the_content_limit(350, __("[Read more of this article]", 'studiopress')); ?>
<hr/>
<?php endwhile; ?>
<?php if(get_theme_mod('featured_bottom')) : ?>
<strong><a href="<?php echo get_category_link(get_theme_mod('featured_bottom')); ?>" rel="bookmark"><?php _e("Read more posts from ", 'studiopress'); echo get_cat_name(get_theme_mod('featured_bottom')); ?></a></strong>
<?php endif; ?>
</div>
</div>
<div id="homepageleft">
<div class="hpfeatured">
<h3>LATEST WATWATWORLD BLOG POST</h3>
<?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_left')."&showposts=".get_theme_mod('featured_top_left_num')); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img class="thumb" src="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=<?php echo get_theme_mod('featured_top_left_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_top_left_thumb_width'); ?>&zc=1" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<?php endif; ?>
<strong><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></strong>
<?php the_content_limit(490, __("[Read more of this blog post]", 'studiopress')); ?>
<hr/>
<?php endwhile; ?>
<?php if(get_theme_mod('featured_top_left')) : ?>
<strong><a href="<?php echo get_category_link(get_theme_mod('featured_top_left')); ?>" rel="bookmark"><?php _e("Read more posts from ", 'studiopress'); echo get_cat_name(get_theme_mod('featured_top_left')); ?></a></strong>
<?php endif; ?>
</div>
<div class="hpfeatured">
<h3>Baguio-Cordillera News, Issues & Events</h3>
<?php $recent = new WP_Query("cat=5&showposts=5"); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img class="thumb" src="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=<?php echo get_theme_mod('featured_top_left_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_top_left_thumb_width'); ?>&zc=1" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<?php endif; ?>
<strong><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></strong>
<?php the_content_limit(115, ""); ?>
<hr/>
<?php endwhile; ?>
<strong><a href="http://watwatworld.com/?cat=5">Read More BAGUIO-CORDILLERA</a></strong>
</div>
</div>
<div id="homepageright">
<div class="hpfeatured">
<h3>HOME BASED BUSINESS, IDEAS AND MORE</h3>
<?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_right')."&showposts=".get_theme_mod('featured_top_right_num')); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img class="thumb" src="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=<?php echo get_theme_mod('featured_top_right_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_top_right_thumb_width'); ?>&zc=1" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<?php endif; ?>
<strong><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></strong>
<?php the_content_limit(80, ""); ?>
<hr/>
<?php endwhile; ?>
<?php if(get_theme_mod('featured_top_right')) : ?>
<strong><a href="<?php echo get_category_link(get_theme_mod('featured_top_right')); ?>" rel="bookmark"><?php _e("Read more posts from ", 'studiopress'); echo get_cat_name(get_theme_mod('featured_top_right')); ?></a></strong>
<?php endif; ?>
</div>
<div class="hpfeatured">
<h3>Featured Business, Ideas and Places</h3>
<?php $recent = new WP_Query("cat=13&showposts=4"); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img class="thumb" src="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=<?php echo get_theme_mod('featured_top_right_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_top_right_thumb_width'); ?>&zc=1" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<?php endif; ?>
<strong><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></strong>
<?php the_content_limit(80, ""); ?>
<hr/>
<?php endwhile; ?>
<strong><a href="http://watwatworld.com/?cat=13">Read More FEATURED Business</a></strong>
</div>
<div class="hpfeatured">
<h3>watwatWORLD NEWS</h3>
<?php $recent = new WP_Query("cat=85&showposts=7"); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img class="thumb" src="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=<?php echo get_theme_mod('featured_top_right_thumb_height'); ?>&w=<?php echo get_theme_mod('featured_top_right_thumb_width'); ?>&zc=1" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<?php endif; ?>
<strong><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></strong>
<?php the_content_limit(80, ""); ?>
<hr/>
<?php endwhile; ?>
<strong><a href="http://watwatworld.com/?cat=85">More watwatWORLD NEWS Here</a></strong>
</div>
</div>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>