Horje
Urgent problem, Site breaks 3.1 - Wordpress Solution
Home page in particular is awful. Programming used in side bar to get latest games and home page all broken http://www.pandragon.com need urgent fix Quote price and please fix :O
<?php

/**

 Template name: Home

  * @package WordPress

 * @subpackage pan_Theme

 */



get_header(); ?>

<div class="content-top topround"></div>
<div id="content">
 <div id="main-content">
  <h1>Best Online Casino</h1>
  <p>Welcome to pandragon where you can find the <a rel="nofollow" href="http://www.pandragon.com/latest-casino-bonuses">latest casino bonuses</a>, <a rel="nofollow" href="http://www.pandragon.com/free-online-gambling">free online
    gambling</a> for the top rated casinos on the web. We find some of the <strong>best online casino</strong> sites on the web and negotiate better deals for our Members - so you get to participate in
    limited time prize offers with selected casinos, if you are a regular this means you'll have more chances at winning an extra prize with your casino experience!</p>
  <form action="http://pandragon.us2.list-manage.com/subscribe/post?u=81a4ba34f2ec38f6433658f2c&amp;id=f9c2cdf869" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" style="font: normal 100% Arial;font-size: 12px;">
   <p>Exclusive bonus deals, Join Newsletter
    <input type="text" class="newsletter" value="Email Address"  name="EMAIL" id="mce-EMAIL" />
    <input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="subscribe" >
   </p>
  </form>
  <div class="iclear"></div>
  <a rel="nofollow" href="http://www.pandragon.com/treasureroom"><img src="http://c0006250.cdn2.cloudfiles.rackspacecloud.com/exclusives.png" style="margin-bottom:10px;" alt="no deposit casino" width="581" height="135" class="floatl"/></a><br />
  <br />
  <!-- end of SUB Newsletter -->
  <br />
  <div align="center"><a rel="nofollow" href="http://www.pandragon.com/free-online-gambling"><img src="http://c0006250.cdn2.cloudfiles.rackspacecloud.com/freegamesbutton1.png" width="191" height="171" /></a><a rel="nofollow" href="/scratchies"><img src="http://c0006250.cdn2.cloudfiles.rackspacecloud.com/newscratchiesbutton1.png" width="194" height="171" /></a><a rel="nofollow" href="http://www.pandragon.com/weeklyreload"><img src="http://c0006250.cdn2.cloudfiles.rackspacecloud.com/newbonusmarathon1.png" width="192" height="171" /></a></div>
  <!-- end of new feature ul -->
  <br />
  <br />
  <!-- top 10 casino -->
  <?php include (TEMPLATEPATH . '/homecasinos.php'); ?>
  <!-- /top 10 casino -->
  <h2 class="normal" style="padding:8px 0 8px 0!important;">Top Online Casinos by software</h2>
  <p>Navigate through the top3 casinos for each group by clicking the red 'Rival,RTG,Netent above the chart! If your in a rush you can find above the top 3 casinos for each of the software. Microgaming,
   Playtech and NetEnt games are UK specific casinos - which means these ones aren't allowing USA players right now. For USA Players the best online casino software to choose are between the RTG and Rival
   technologies - However It's purely up to personal prefence and whoever your luckiest with! Some casinos can be very lucky for some and not so much for others - you could try a few different casinos
   and then base your judgment on what works best for you!</p>
  <div class="iclear2"></div>
  <br />
  <div class="title">
   <h2>Online slots - This weeks Casino News</h2>
   <ul>
    <li>Casino Software: </li>
    <li class="active"><a rel="nofollow" href="#"><span>Latest slots games</span></a></li>
   </ul>
  </div>
  <!--/title-->
  <!-- is from usa-->
  <?php query_posts('category_name=newgames&tag=usa+slots-detail&posts_per_page=1'); ?>
  <?php if (have_posts()) : ?>
  <?php while (have_posts()) : the_post(); ?>
  <div class="news-top">
   <!-- Left featured post -->
   <div class="left">
    <div class="img">
     <div style="width:351px;height:200px;overflow:hidden;"><a rel="nofollow" href="<?php the_permalink(); ?>"><?php echo get_image('screenbig');?></a></div>
     <div class="caption"> <span class="logo"><a rel="nofollow" href="<?php echo get('affid'); ?>"><img src="<?php echo get('logo');?>" /></a></span> <span class="title"><a rel="nofollow" href="<?php echo get('affid'); ?>"><?php echo get('name');?></a></span> <span class="price"><a rel="nofollow" href="<?php echo get('affid'); ?>"><?php echo get('bonus');?> bonus
        available</a></span> </div>
    </div>
    <h3><a rel="nofollow" href="<?php the_permalink(); ?>">
     <?php the_title(); ?>
     </a><span>
     <noindex>
      <?php the_time('i') ?>
      mins ago</noindex>
     </span></h3>
    <p><?php echo get('details'); ?><a rel="nofollow" href="<?php the_permalink(); ?>">Full story >></a></p>
    <p><span class="slideshow">Slideshow: <a rel="nofollow" href="<?php the_permalink(); ?>">
     <?php the_title(); ?>
     </a></span></p>
   </div>
   <?php endwhile;endif; ?>
   <!-- Sidebar right -->
   <div class="right">
    <?php query_posts('category_name=newgames&tag=usa+slots-detail&posts_per_page=1&offset=1'); ?>
    <?php $posts = get_posts('category_name=newgames&tag=usa+slots-detail&numberposts=1&offset=1'); foreach ($posts as $post) : start_wp(); ?>
    <?php static $count2 = 0; if ($count2 == "1") { break; } else { ?>
    <!-- style with no image -->
    <h4><a rel="nofollow" href="<?php the_permalink(); ?>">
     <?php the_title(); ?>
     </a><span>
     <noindex>
      <?php the_time('i') ?>
      mins ago</noindex>
     </span></h4>
    <?php $count2++; } ?>
    <?php endforeach; ?>
    <!-- style with image -->
    <?php query_posts('category_name=newgames&tag=usa+slots-detail&posts_per_page=1&offset=2'); ?>
    <?php $posts = get_posts('category_name=newgames&tag=usa+slots-detail&numberposts=1&offset=2'); foreach ($posts as $post) : start_wp(); ?>
    <?php static $count3 = 0; if ($count3 == "1") { break; } else { ?>
    <ul>
     <li class="img"><a rel="nofollow" href="<?php the_permalink(); ?>"><?php echo get_image('screenbig'); ?></a></li>
     <li>
      <h4><a rel="nofollow" href="<?php the_permalink(); ?>">
       <?php the_title(); ?>
       </a><span>
       <noindex>
        <?php the_time('i') ?>
        mins ago</noindex>
       </span></h4>
     </li>
    </ul>
    <div class="hr"></div>
    <?php $count3++; } ?>
    <?php endforeach; ?>
    <?php query_posts('category_name=newgames&tag=usa+slots-detail&posts_per_page=1&offset=3'); ?>
    <?php $posts = get_posts('category_name=newgames&tag=usa+slots-detail&numberposts=1&offset=3'); foreach ($posts as $post) : start_wp(); ?>
    <?php static $count4 = 0; if ($count4 == "1") { break; } else { ?>
    <!-- style with no image -->
    <h4><a rel="nofollow" href="<?php the_permalink(); ?>">
     <?php the_title(); ?>
     </a><span>
     <noindex>
      <?php the_time('i') ?>
      mins ago</noindex>
     </span></h4>
    <?php $count4++; } ?>
    <?php endforeach; ?>
    <!-- style with image -->
    <?php query_posts('category_name=newgames&tag=usa+slots-detail&posts_per_page=1&offset=4'); ?>
    <?php $posts = get_posts('category_name=newgames&tag=usa+slots-detail&numberposts=1&offset=4'); foreach ($posts as $post) : start_wp(); ?>
    <?php static $count5 = 0; if ($count5 == "1") { break; } else { ?>
    <ul>
     <li class="img"><a rel="nofollow" href="<?php the_permalink(); ?>"><?php echo get_image('screenbig'); ?></a></li>
     <li>
      <h4><a rel="nofollow" href="<?php the_permalink(); ?>">
       <?php the_title(); ?>
       </a><span>
       <noindex>
        <?php the_time('i') ?>
        mins ago</noindex>
       </span></h4>
     </li>
    </ul>
    <div class="hr"></div>
    <?php $count5++; } ?>
    <?php endforeach; ?>
   </div>
  </div>
  <!-- /is from usa-->
  <!-- /////////////////////////////////////////// poker/live/bingo -->
  <div class="title">
   <h2>Live casinos - Most played Online live casino games</h2>
   <ul>
    <li>If you've been searching for Live casinos you've come ot the right place! </li>
   </ul>
  </div>
  <!--/title-->
  <div class="most-played">
   <div class="left">
    <ul>
     <li class="img"><img src="http://c0006250.cdn2.cloudfiles.rackspacecloud.com/content-img-10.gif" alt="live casinos" /></li>
     <li>
 <?php query_posts('category_name=newgames&tag=livecasinos+usa&posts_per_page=1'); ?>
      <?php if (have_posts()) : ?>
      <?php while (have_posts()) : the_post(); ?>
      <h4><a rel="nofollow" href="<?php the_permalink();?>">
       <?php the_title();?>
       </a> <span>
       <?php the_time('l, F jS, Y') ?>
       </span></h4>
      <?php endwhile;endif; ?>
     </li>
    </ul>
   </div>
   <div class="right">
    <ul>
     <?php query_posts('category_name=newgames&tag=livecasinos+usa&posts_per_page=4&offset=1'); ?>
     <?php $posts = get_posts('category_name=newgames&tag=livecasinos+usa&numberposts=4&offset=1'); foreach ($posts as $post) : start_wp(); ?>
     <?php static $count7 = 0; if ($count7 == "4") { break; } else { ?>
     <li><a rel="nofollow" href="<?php the_permalink(); ?>">
      <?php the_title(); ?>
      </a> <span>
      <noindex>New -
       <?php the_time('l, F jS, Y') ?>
      </noindex>
      </span></li>
     <?php $count7++; } ?>
     <?php endforeach; ?>
    </ul>
    <p class="right"><a rel="nofollow" href="http://www.pandragon.com/livecasinos">More live casinos</a></p>
   </div>
  </div>
  <!--/most-played-->
  <div class="title">
   <h2>Poker tables - Most played Online poker tables</h2>
   <ul>
    <li>The best poker table games </li>
   </ul>
  </div>
  <!--/title-->
  <div class="most-played">
   <div class="left">
    <ul>
     <li class="img"><img src="http://c0006250.cdn2.cloudfiles.rackspacecloud.com/pokerthumb.png" alt="poker tables" /></li>
     <li>
      <?php query_posts('category_name=newgames&tag=poker-feature+usa&posts_per_page=1'); ?>
      <?php if (have_posts()) : ?>
      <?php while (have_posts()) : the_post(); ?>
      <h4><a rel="nofollow" href="<?php the_permalink();?>">
       <?php the_title();?>
       </a> <span>
       <?php the_time('l, F jS, Y') ?>
       </span></h4>
      <?php endwhile;endif; ?>
     </li>
    </ul>
   </div>
   <div class="right">
    <ul>
     <?php query_posts('category_name=newgames&tag=poker-feature+usa&posts_per_page=4&offset=1'); ?>
     <?php $posts = get_posts('category_name=newgames&tag=poker-feature+usa&numberposts=4&offset=1'); foreach ($posts as $post) : start_wp(); ?>
     <?php static $count8 = 0; if ($count8 == "4") { break; } else { ?>
     <li><a rel="nofollow" href="<?php the_permalink(); ?>">
      <?php the_title(); ?>
      </a> <span>
      <noindex>New -
       <?php the_time('l, F jS, Y') ?>
      </noindex>
      </span></li>
     <?php $count8++; } ?>
     <?php endforeach; ?>
    </ul>
    <p class="right"><a rel="nofollow" href="http://www.pandragon.com/poker">More Poker Tables</a></p>
   </div>
  </div>
  <!--/most-played-->
  <div class="title">
   <h2>Online Scratchcards - Most scratched online 'scratchies'</h2>
   <ul>
    <li>The best scratch cards </li>
   </ul>
  </div>
  <!--/title-->
  <div class="most-played">
   <div class="left">
    <ul>
     <li class="img"><img src="http://c0006250.cdn2.cloudfiles.rackspacecloud.com/scratchcardthumb.png" alt="instant scratch cards" /></li>
     <li>
      <?php query_posts('category_name=newgames&tag=scratchies+usa&posts_per_page=1'); ?>
      <?php if (have_posts()) : ?>
      <?php while (have_posts()) : the_post(); ?>
      <h4><a rel="nofollow" href="<?php the_permalink();?>">
       <?php the_title();?>
       </a> <span>
       <?php the_time('l, F jS, Y') ?>
       </span></h4>
      <?php endwhile;endif; ?>
     </li>
    </ul>
   </div>
   <div class="right">
    <ul>
     <?php query_posts('category_name=newgames&tag=scratchies+usa&posts_per_page=4&offset=1'); ?>
     <?php $posts = get_posts('category_name=newgames&tag=scratchies+usa&numberposts=4&offset=1'); foreach ($posts as $post) : start_wp(); ?>
     <?php static $count9 = 0; if ($count9 == "4") { break; } else { ?>
     <li><a rel="nofollow" href="<?php the_permalink(); ?>">
      <?php the_title(); ?>
      </a> <span>
      <noindex>New -
       <?php the_time('l, F jS, Y') ?>
      </noindex>
      </span></li>
     <?php $count9++; } ?>
     <?php endforeach; ?>
    </ul>
    <p class="right"><a rel="nofollow" href="http://www.pandragon.com/scratchies">More scratch cards</a></p>
   </div>
  </div>
  <!--/most-played-->
  <div class="title">
   <h2>Online Gambling Sites</h2>
  </div>
  <div class="iclear"></div>
  <p>
  <h4>Best time to Play in Online Casinos</h4>
  If you're dealing with real money, consider this; distractions can be very costly - so make sure you have a proper place to make your online skilled gambling bets. Even one small misstep can result in
  a big loss so a "Do Not Disturb" sign can certainly be a wise investment! <br />
  <br />
  In addition, even an experienced sports bettor can lose money if they fail to take the time to understand how the point spread works. So, it's a good idea not to just jump into the fray without allotting
  the time needed to see how your decisions will most likely turn out. This translates into placing those no-money practice bets! Just remember, sports betting is fun - not a "business". So have a blast
  and root for your favorite teams and win right alongside them with your well-considered wagering! <a rel="nofollow" id="mci" href="#morecasinoinfo">What types of signup bonuses are available?</a>
  <script type="text/javascript" charset="utf-8">

$(document).ready(function () {

    var $div = $('#morecasinoinfo');

    var height = $div.height();

    $div.hide().css({ height : 0 });



    $('a#mci').click(function () {

        if ($div.is(':visible')) {

            $div.animate({ height: 0 }, { duration: 2500, complete: function () {

                $div.hide();

            } });

        } else {

            $div.show().animate({ height : height }, { duration: 2500 });

        }

        

        return false;

    });

});

</script>
  <br />
  <br />
  <p id="morecasinoinfo"><strong>Online Casino Bonuses</strong> This is a big topic that we cover extensively in our other sections, so I'll be brief, here. Online Casino Bonuses come in different varieties
   and I'll touch upon some of the bonus types. Winning with an online bonus is similar to hitting a jackpot. The main benefits are that online casino bonuses can assist a new player in getting up to speed
   with an unfamiliar casino's software while providing a bit of a head start when attempting to build a decent bankroll.<br />
   <br />
   <strong>The Signup Bonus </strong>The online casino free signup bonus is offered to new players who wish to join a casino for the first time. It can come in the form of a Free No Deposit Bonus in which
   a small amount of money is added to a new account and the new player may keep their winnings (up to a specified amount) after meeting the wagering requirements. A Free Deposit Bonus is a matching amount
   of cash, provided by the casino, which relates to an amount that the player has deposited and has its own wagering rules, which is true of all internet casino online signup bonuses.<br />
   <br />
   <strong>The Cashable Bonus</strong> This is the most common type of casino bonus in which the player may cashout their winnings after completing the casino's wagering requirements.<br />
   <br />
   <strong>The "Sticky" Bonus</strong> This is a bonus that may not be cashed out and is deducted from the winnings when the player cashes out.<br />
   <br />
   <strong>The Cash Back Bonus </strong>This type of bonus is directly related to player losses and consists of a portion of that loss returned to the player. An example might include a weekly 20% cash
   back bonus, in which a player will receive 20% of that week's losses handed back to them. This is not a common bonus. Of course winners will not benefit from this bonus. <br />
   <br />
  </p>
  <div class="yellow-box">
   <p>If your want a list of bonuses then the <a rel="nofollow" href="http://www.pandragon.com/latest-casino-bonuses">latest casino bonuses</a> section is made for you in mind. For those more enclined to select casinos
    based off user expereience check out the <a rel="nofollow" href="http://www.pandragon.com/reviews/casino">casino reviews.</a><br />
    Pandragons <a rel="nofollow" href="http://www.pandragon.com/">best online casinos</a> can always be seen from our compact easy to read homepage.</p>
  </div>
 </div>
 <!--/main-content-->
 <?php get_sidebar();?>
 <!--/sidebar-->
</div>
<!--/content-->
<?php get_footer(); ?>
Hi, Can you tell me all the problems? And do you have a screenshot of correct homepage? I need to know how it should work and look... Here is screenshot of how its usually meant to look. Basically all the custom code is not working, to get arrays of posts they did something weird so only home page posts broken and also sidebar and on www.pandragon.com/latest-casino-bonuses page.

Solution - 1

Hi, Can you tell me all the problems? And do you have a screenshot of correct homepage? I need to know how it should work and look...





Wordpress

Related
Autofocuspro display on Firefox - Wordpress Solution Autofocuspro display on Firefox - Wordpress Solution
page hovers - Wordpress Solution page hovers - Wordpress Solution
have different page title images for each page - Wordpress Solution have different page title images for each page - Wordpress Solution
Post attachments not working with TimThumb on Multisite - Wordpress Solution Post attachments not working with TimThumb on Multisite - Wordpress Solution
Conditional IF /ELSE statements with taxonomy - Wordpress Solution Conditional IF /ELSE statements with taxonomy - Wordpress Solution

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8