StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-27-2011, 12:57 AM
humarri humarri is offline
Registered User
Genesis Member
 
Join Date: May 2010
Posts: 20
Default home.php problem

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&amp;hl=en_US&amp;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&amp;hl=en_US&amp;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); ?>&amp;h=<?php echo get_theme_mod('featured_bottom_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_bottom_thumb_width'); ?>&amp;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); ?>&amp;h=<?php echo get_theme_mod('featured_top_left_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_top_left_thumb_width'); ?>&amp;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); ?>&amp;h=<?php echo get_theme_mod('featured_top_left_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_top_left_thumb_width'); ?>&amp;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); ?>&amp;h=<?php echo get_theme_mod('featured_top_right_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_top_right_thumb_width'); ?>&amp;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); ?>&amp;h=<?php echo get_theme_mod('featured_top_right_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_top_right_thumb_width'); ?>&amp;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); ?>&amp;h=<?php echo get_theme_mod('featured_top_right_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_top_right_thumb_width'); ?>&amp;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(); ?>

Last edited by NicktheGeek; 09-27-2011 at 09:15 AM.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem on the Home Page teamturbo General Discussion 2 10-28-2009 11:48 AM
Problem home.php JCarlosMC General Discussion 2 01-27-2009 04:27 PM


All times are GMT -5. The time now is 04:47 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.