Blue Ape
09-18-2011, 02:59 PM
Hello I was in the DD part of the forums asking about a script and it looks like it's more on the PHP side. The script is working but not recognizing the content it should be grabbing. Basically I have a featuredcontentglider script on my wordpress page, when I swapped some files (from newer to older versions after a menu problem I ran into) I started getting the ""No Content exists at page 1! Loading 1st page instead."
In the DD side of the forums they showed me how to manually input content, but before it broke it would grab new posts that was selected as featured content. Now it uses nothing except the input data he had me put in, or if I remove it nothing except the error again.
site: http://markkoenig.net
<script type="text/javascript">
featuredcontentglider.init({
gliderid: "glidercontent",
contentclass: "glidecontent",
togglerid: "togglebox",
remotecontent: "",
selected: 0,
persiststate: true,
speed: 200,
direction: "leftright",
autorotate: true,
autorotateconfig: [10000, 1] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
})
</script>
<div id="glidercontent" class="glidecontentwrapper">
<div id="togglebox" class="glidecontenttoggler">
<a href="#" class="prev"> < Previous </a>
<a href="#" class="next"> Next > </a>
</div>
<?php
$my_query = new WP_Query('category_name=featured&showposts= 3');
while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;
?>
<div class="glidecontent">
<div class="glidim">
<?php $feature = get_post_meta($post->ID,'feature', true); ?>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" >
<img src="<?php echo ($feature); ?>" width="250" height="250" alt="<?php the_title(); ?>"/> </a>
</div>
<div class="glidmeta">
<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>
<div class="gmore">
<a href="<?php the_permalink() ?>">Read more</a>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
<div class="clear"></div>
I removed the part of the code that added in manual content.
Here is the post from the DD part of the forums:
http://www.dynamicdrive.com/forums/showthread.php?p=261284&posted=1#post261284
In the DD side of the forums they showed me how to manually input content, but before it broke it would grab new posts that was selected as featured content. Now it uses nothing except the input data he had me put in, or if I remove it nothing except the error again.
site: http://markkoenig.net
<script type="text/javascript">
featuredcontentglider.init({
gliderid: "glidercontent",
contentclass: "glidecontent",
togglerid: "togglebox",
remotecontent: "",
selected: 0,
persiststate: true,
speed: 200,
direction: "leftright",
autorotate: true,
autorotateconfig: [10000, 1] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]
})
</script>
<div id="glidercontent" class="glidecontentwrapper">
<div id="togglebox" class="glidecontenttoggler">
<a href="#" class="prev"> < Previous </a>
<a href="#" class="next"> Next > </a>
</div>
<?php
$my_query = new WP_Query('category_name=featured&showposts= 3');
while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;
?>
<div class="glidecontent">
<div class="glidim">
<?php $feature = get_post_meta($post->ID,'feature', true); ?>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" >
<img src="<?php echo ($feature); ?>" width="250" height="250" alt="<?php the_title(); ?>"/> </a>
</div>
<div class="glidmeta">
<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>
<div class="gmore">
<a href="<?php the_permalink() ?>">Read more</a>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
<div class="clear"></div>
I removed the part of the code that added in manual content.
Here is the post from the DD part of the forums:
http://www.dynamicdrive.com/forums/showthread.php?p=261284&posted=1#post261284