Wordpress Help Please

by Your
9 replies
I was updating my site and have left something open on my homepage, every other page of the site is fine just the homepage is the issue, I have a loop that's out of control and I can't locate the issue, if anyone has any debugging tools or just possible eyes I'd be grateful.

Site:
Blknwht dot com

Email:
blknwhtstudios at gmail dot com

I'd be grateful for any help or even a possible solution, the page loads then the loop happens and it removes my content, INSANE!!!!
#looping #wordpress
  • Profile picture of the author digitalmcgrath
    From viewing the source, your content is still there, just not being displayed. Can you post the source code here?
    {{ DiscussionBoard.errors[6887030].message }}
    • Profile picture of the author Your
      <?php
      /*
      Template Name: Homepage
      */
      ?>
      <?php get_header(); ?>
      <!--content-->

      <div id="content">
      <?php if ($data['intro_hide'] == 1 ): ?>
      <div class="intro_homepage"> <?php echo do_shortcode($data['intro_content']); ?> </div>
      <?php endif; ?>
      <div class="full_width_page" id="post-<?php the_ID(); ?>">
      <?php
      $layout = $data['homepage_layout']['enabled'];

      if ($layout):

      foreach ($layout as $key=>$value) {

      switch($key) {

      case 'latest_work':
      require('includes/portfolio_slider.php');
      break;
      case 'latest_blog':
      require('includes/latest_posts_section.php');
      break;
      ?>
      <?php
      case 'custom_content': ?>
      <!-- homepage custom content -->
      <div class="homepage_content">
      <?php $homepage_slug = ''; if (!$homepage_slug) $custom_query = new WP_Query('pagename='.$homepage_slug.''); while ($custom_query->have_posts()) : $custom_query->the_post(); $do_not_duplicate = $post->ID; ?>
      <?php the_content(); ?>
      <?php edit_post_link(__('Edit this entry.<br />', 'framework'),'',''); ?>
      <?php endwhile; ?>
      </div>
      <!-- homepage custom content end -->
      <?php break;


      }

      }

      endif;
      ?>
      </div>
      <!-- full width page end -->

      </div>
      <!--content-end-->
      <?php if($data['our_clients'] == '1') : ?>
      <!-- clients section -->
      <div class="the_clients">
      <h3 class="styled_title_clients"><span><?php echo $data['client_logo_title']; ?></span></h3>
      <ul>
      <?php if(!empty($data['client_logo1'])) : ?>
      <li><img src="<?php echo $data['client_logo1']; ?>" width="126" height="65" alt="" /></li>
      <?php endif; ?>
      <?php if(!empty($data['client_logo2'])) : ?>
      <li><img src="<?php echo $data['client_logo2']; ?>" width="126" height="65" alt="" /></li>
      <?php endif; ?>
      <?php if(!empty($data['client_logo3'])) : ?>
      <li><img src="<?php echo $data['client_logo3']; ?>" width="126" height="65" alt="" /></li>
      <?php endif; ?>
      <?php if(!empty($data['client_logo4'])) : ?>
      <li><img src="<?php echo $data['client_logo4']; ?>" width="126" height="65" alt="" /></li>
      <?php endif; ?>
      <?php if(!empty($data['client_logo5'])) : ?>
      <li><img src="<?php echo $data['client_logo5']; ?>" width="126" height="65" alt="" /></li>
      <?php endif; ?>
      <?php if(!empty($data['client_logo6'])) : ?>
      <li><img src="<?php echo $data['client_logo6']; ?>" width="126" height="65" alt="" /></li>
      <?php endif; ?>
      </ul>
      </div>
      <!-- clients section end -->
      <?php endif; ?>
      </div>
      <!--wrapper-end-->
      <?php get_footer(); ?>

      Does that help?
      {{ DiscussionBoard.errors[6887104].message }}
    • Profile picture of the author Your
      ok, I narrowed it down to "Latest Work" do you see any typo's or anything left open? I can not figure this out
      {{ DiscussionBoard.errors[6887200].message }}
  • Profile picture of the author digitalmcgrath
    What does includes/portfolio_slider.php look like?
    {{ DiscussionBoard.errors[6887227].message }}
    • Profile picture of the author Your
      I think the problem lies in here for sure, thanks for looking, It wouldn't let me post the code, I'm to new so I put it on an HTML page, if you'd take a look I'd be grateful

      blknwht dot com / portfolio_slider.txt
      {{ DiscussionBoard.errors[6887372].message }}
  • Profile picture of the author Your
    Anyone with any ideas, I know I wrote the code incorrectly, please help, it's got to be minor, I have no idea where I left something out
    {{ DiscussionBoard.errors[6887743].message }}
  • Profile picture of the author rajeevrla
    Are you still having issues? I can see the website correctly in firefox.
    Signature

    Have a great day!

    {{ DiscussionBoard.errors[6888000].message }}
    • Profile picture of the author Your
      Yes, I cannot put my Recent Work on my Homepage, in the file above 'portfolio_slider.txt' I did something which I can't figure out, it's causing a loop that removes all my content from the page, I just took the code out for now, I was hoping someone could help me figure out where I messed the .php page up
      {{ DiscussionBoard.errors[6888056].message }}
  • Profile picture of the author digitalmcgrath
    Are you using a plugin for this feature? And is this the same code that is being used on your portfolio page?
    {{ DiscussionBoard.errors[6892417].message }}

Trending Topics