Featured Content Gallery | WordPress Plugin | iePlexus

[HELP] Adding FCG in my Theme

General WordPress and FCG plugin discussion

[HELP] Adding FCG in my Theme

PostBy PinoyEngine™ on Thu Jun 04, 2009 6:11 am

Hello! I am creating a new template and applying your FCG.

Here is my index.php
<?php get_header(); ?>

<!-- BEGIN home -->
<div id="home">
<!-- BEGIN featured -->
<div id="featured">
<h2>Featured News</h2>
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
</div>
<!-- END featured -->
<!-- BEGIN popular -->
<div id="popular">
<h2>Popular Articles</h2>
<ul>
<?php dp_popular_posts(7); ?>
</ul>
</div><div class="break"></div>
<!-- END popular -->
</div>
<!-- END home -->
<!-- BEGIN content -->
<div id="content">
<?php
$wp_query = $temp_query;
if (have_posts()) :
while (have_posts()) : the_post();
$arc_year = get_the_time('Y');
$arc_month = get_the_time('m');
$arc_day = get_the_time('d');
?>
<!-- begin post -->
<div class="post">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p class="date"><?php the_time('l, F j, Y') ?></p>
<?php dp_attachment_image(0, 'thumbnail', 'alt="'.$post->post_title.'"'); ?>
<?php the_excerpt(); ?>
<p class="details">
<span class="comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span>
<a class="readmore" href="<?php the_permalink(); ?>">Read full story &raquo;</a>
</p>
</div>
<!-- end post -->
<?php endwhile; ?>
<p id="postnav">
<?php next_posts_link('&laquo; Older Entries'); ?> &nbsp;
<?php previous_posts_link('Newer Entries &raquo;'); ?>
</p>
<?php else : ?>
<div class="notfound">
<h2>Not Found</h2>
<p>Sorry, but you are looking for something that is not here.</p>
</div>
<?php endif; ?>
</div>
<!-- END content -->

<?php get_sidebar(); get_footer(); ?>


But when I will look at the preview it keep son bothering this code:

Code: Select all
Fatal error: Call to a member function have_posts() on a non-object in C:\xampp\htdocs\wordpress-2.7.1\wordpress\wp-includes\query.php on line 610


Please help. Thanks in advance and more power.
PinoyEngine™
 
Posts: 1
Joined: Thu Jun 04, 2009 6:07 am

Re: [HELP] Adding FCG in my Theme

Thank you for using the Featured Content Gallery Forum
 

Re: [HELP] Adding FCG in my Theme

PostBy admin on Thu Jun 04, 2009 7:58 am

you error is not fcg error, please address you question to a proper forum(wordpress)
Yelena Khamidullina
Web Applications Developer, iePlexus

1. Check settings to exclude fcg-YOU conflict
2. Try to turn off all your plugins at once to exclude fcg-other plugin conflict
3. Try default theme to exclude fcg-theme conflict
4. Post in this forum to involve me in your troubleshooting. URL is required
User avatar
admin
Site Admin
 
Posts: 4789
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA


Return to General Discussion

Who is online

Users browsing this forum: tiowoopeser and 6 guests

cron