Theme not working when took Online
-
I have been working on a wordpress site, and testing it at home on my machine locally using MAMP, now when I uploaded the site, the loops will not work any more. I have the jquery cycle plugin at the top of the page that should show posts with the category ID of featured
<?php $featured = new WP_Query(); $featured ->query(); while($featured->have_posts()) : $featured->the_post(); $wp_query->in_the_loop=true; $featured_ID = $post->ID; ?> <?php if(in_category('3')) { ?> <?php if(get_post_meta($post->ID, 'large_preview', true)) { ?> <div class="indF"> <img src="<?php echo get_post_meta($post->ID, 'large_preview', true); ?>" alt="Featured Post" /> <?php } ?> <div class="featuredTitle"><!-- Title and Transparent Box --> <p class="date"><?php the_time('M d'); ?></p> <h3><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3> <p><?php the_excerpt(); ?></p> <p class="meta">Written by <?php the_author_posts_link(); ?></p> </div> </div><!-- END FEATURED IND --> <?php } ?> <?php endwhile; ?>
For some reason the cylce is working, but it shows that there is like 6 other posts as well, and I only have one Post at all.
This all worked great on my machine locally, I am not sure why it would work there and not online. Any thoughts ???
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Theme not working when took Online’ is closed to new replies.