Featured Content Gallery | WordPress Plugin | iePlexus

Where should i put the code exactly ? Please help me.

Downloading, installing, upgrading, and configuring the FCG plugin

Re: Where should i put the code exactly ? Please help me.

PostBy stereoviewer on Tue Mar 16, 2010 12:47 pm

admin wrote:each site is different, give me your url..


Here it is: http://larsahnland.se/wordpress/
stereoviewer
 
Posts: 3
Joined: Mon Mar 15, 2010 7:02 am

Re: Re: Where should i put the code exactly ? Please help me.

Thank you for using the Featured Content Gallery Forum
 

Re: Where should i put the code exactly ? Please help me.

PostBy GalleryGal on Wed Mar 24, 2010 5:23 pm

I just got the plug-in today and can't wait to get it configured. here is the code for my index.php please let me know where to insert the code.


<?php get_header(); ?>
<?php if (is_paged()) $is_paged = true; ?>

<div id="centercol" class="grid_10">

<?php // Get Options
$feat_posts = get_option('woo_featured_posts');
$feat_width = get_option('woo_feat_image_width');
$feat_height = get_option('woo_feat_image_height');
$content_feat = get_option('woo_content_feat');
$home_onecol = get_option('woo_home_one_col');
$thumb_width = get_option('woo_thumb_image_width');
$thumb_height = get_option('woo_thumb_image_height');
$main_content = get_option('woo_content');
?>
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=-".$GLOBALS[video_id].",-".$GLOBALS[asides_id]."&paged=$paged"); ?>
<?php if (have_posts()) : $count = 0; ?>
<?php while (have_posts()) : the_post(); $postcount++;?>

<!-- Featured Starts -->
<?php if ( $postcount <= $feat_posts && !$is_paged ) { ?>

<div class="box">

<div class="featuredpost">

<?php woo_get_image('image',$feat_width,$feat_height,'feat-image'); ?>

<div class="date-comments">
<p class="fl"><?php the_time('j. F Y'); ?></p>
<p class="fr"><span class="comments"></span><?php comments_popup_link(__('0 Comments',woothemes), __('1 Comment',woothemes), __('% Comments',woothemes)); ?></p>
</div>

<h2><a title="<?php _e('Permanent Link to',woothemes); ?> <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>

<div class="entry">
<?php if ( $content_feat == "true" ) { the_content('[...]'); } else { the_excerpt(); ?><?php } ?>
</div>
<span class="continue"><a title="<?php _e('Permanent Link to',woothemes); ?> <?php the_title(); ?>" href="<?php the_permalink() ?>"><?php _e('Continue reading...',woothemes); ?></a></span>

<div class="fix"></div>

</div><!--/featuredpost -->

</div><!--/box -->

<?php continue; } ?>
<!-- Featured Ends -->

<?php $counter++; $counter2++; ?>

<?php if ( !$is_paged && $home_onecol == "false" ) { ?><div class="grid_5 <?php if ($counter == 1) { echo 'alpha'; } else { echo 'omega'; $counter = 0; } ?>"><?php } ?>

<div class="box">

<div class="date-comments">
<p class="fl"><?php the_time('j. F Y'); ?></p>
<p class="fr"><span class="comments"></span><?php comments_popup_link(__('0 Comments',woothemes), __('1 Comment',woothemes), __('% Comments',woothemes)); ?></p>
</div>

<h2><a title="<?php _e('Permanent Link to',woothemes); ?> <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>

<?php woo_get_image('image',$thumb_width,$thumb_height,'post-thumbnail'); ?>

<div class="entry">
<?php if ( $main_content == "true" ) { the_content('[...]'); } else { the_excerpt(); ?><?php } ?>
</div>
<span class="continue"><a title="<?php _e('Permanent Link to',woothemes); ?> <?php the_title(); ?>" href="<?php the_permalink() ?>"><?php _e('Continue reading...',woothemes); ?></a></span>

<div class="fix"></div>
</div> <!-- end .box -->

<?php if ( !$is_paged && $home_onecol == "false" ) { ?></div> <!-- end .grid5 --><?php } ?>

<?php if ( $counter == 0 ) { ?> <div class="fix"></div> <?php } ?>

<?php endwhile; ?>
<?php endif; ?>

<div class="fix"></div>

<div class="more_entries wrap">
<?php if (function_exists('wp_pagenavi')) wp_pagenavi(); else { ?>
<div class="fl"><?php previous_posts_link(__('&laquo; Newer Entries ',woothemes)) ?></div>
<div class="fr"><?php next_posts_link(__(' Older Entries &raquo;',woothemes)) ?></div>
<br class="fix" />
<?php } ?>
</div>

</div><!--/centercol-->

<?php get_sidebar(); ?>

<?php get_footer(); ?>
GalleryGal
 
Posts: 1
Joined: Wed Mar 24, 2010 5:19 pm

Re: Where should i put the code exactly ? Please help me.

PostBy admin on Thu Mar 25, 2010 10:19 am

I am not sure, just try and see...
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: 4738
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

Re: Where should i put the code exactly ? Please help me.

PostBy apcarter3 on Thu Apr 08, 2010 12:52 pm

I have tried everything in this post and fcg just wont work for me. I know you can figure it out but I am having trouble with it.

url: http://www.latechbcm.org

Code:

Code: Select all
<?php get_header(); ?>

<div id="content-container">

<div id="content">
<?php include (ABSPATH . '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
   <div id="body">

   <?php if (have_posts()) : ?>

      <?php while (have_posts()) : the_post(); ?>

         <div class="post" id="post-<?php the_ID(); ?>">
            
            <div class="date">
               <span class="month"><?php the_time('M') ?></span>
               <span class="day"><?php the_time('j') ?></span>
               <span class="year"><?php the_time('Y') ?></span>
            </div>
         
            <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'elegant-grunge'), get_the_title()); ?>"><?php the_title(); ?></a></h2>

            <?php if ( get_option("show_author") ) : ?>
            <div class="author"><?php the_author() ?></div>
            <?php endif ;?>
            
            <!-- <div class="info">by <?php the_author() ?></div> -->

            <div class="entry">
               <?php the_content(__('Continue reading', 'elegant-grunge')); ?>
            </div>

            <div class="clear"></div>

            <p class="metadata">
               <?php comments_popup_link(__('no comments', 'elegant-grunge'), __('1 comment', 'elegant-grunge'), __('% comments', 'elegant-grunge')); ?>
               <?php the_tags('&nbsp;&nbsp;|&nbsp;&nbsp;'.__('tags:', 'elegant-grunge').' ', ', ', ''); ?>
               <?php if ( count(($categories=get_the_category())) > 1 || $categories[0]->cat_ID != 1 ) : ?>
                | <?php _e('posted in', 'elegant-grunge')?> <?php the_category(', ') ?>
               <?php endif; ?>
               <?php edit_post_link(__('Edit', 'elegant-grunge'), '&nbsp;&nbsp;|&nbsp;&nbsp;', ''); ?>
            </p>
            
         </div>
         
         <div class="hr"><hr /></div>

      <?php endwhile; ?>

      <div class="navigation">
         <div class="next"><?php next_posts_link(__('&laquo; Older Entries', 'elegant-grunge')) ?></div>
         <div class="previous"><?php previous_posts_link(__('Newer Entries &raquo;', 'elegant-grunge')) ?></div>
      </div>

   <?php else : ?>

      <h2 class="center"><?php _e('Not Found', 'elegant-grunge') ?></h2>
      <p class="center"><?php _e('Sorry, but you are looking for something that isn\'t here.', 'elegant-grunge') ?></p>
      <?php include (TEMPLATEPATH . "/searchform.php"); ?>

   <?php endif; ?>

   </div>

   <?php if ( get_option('page_setup') != 'no-sidebar'  ) get_sidebar(); ?>
</div>
<div class="clear"></div>
</div>

<?php get_footer(); ?>


This is in Main Index Template on the Default Theme.

Right now it is 300 X 300 but I just put that is see if I could get the box to show bc I dont know what dimensions I want it yet. I just want it to work! I have 3 pages with custom fields. I have done everything that I have read and even watched the instruction video.

Please Help!
apcarter3
 
Posts: 8
Joined: Thu Apr 08, 2010 11:44 am

Re: Where should i put the code exactly ? Please help me.

PostBy admin on Fri Apr 09, 2010 7:36 am

give me screenshot you your fcg options page
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: 4738
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

Re: Where should i put the code exactly ? Please help me.

PostBy apcarter3 on Fri Apr 09, 2010 7:56 am

Well if you go look at the site you will see I got it appear but it won't load. All I did is reintall the template but it will not load. I will give you a screen shot of the options page when I get to a computer.

Thanks for you help!
apcarter3
 
Posts: 8
Joined: Thu Apr 08, 2010 11:44 am

Re: Where should i put the code exactly ? Please help me.

PostBy apcarter3 on Fri Apr 09, 2010 10:30 am

Here is the screen shot I attached it as a file
Attachments
screen.jpg
Here is the screen shot.
screen.jpg (180.63 KiB) Viewed 437 times
apcarter3
 
Posts: 8
Joined: Thu Apr 08, 2010 11:44 am

Re: Where should i put the code exactly ? Please help me.

PostBy admin on Fri Apr 09, 2010 10:47 am

I do not see any posts/pages on your site with provided post/pageids like 10,11,12
even if you have those there, they need to be published..

I see only three pages :
ids: 43,81,101
one post with id 38

check here how to find post/pageids
how-to-find-a-post-or-page-id-14.html
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: 4738
Joined: Fri Jan 16, 2009 9:29 am
Location: Seattle, WA

Re: Where should i put the code exactly ? Please help me.

PostBy apcarter3 on Fri Apr 09, 2010 11:17 am

That makes sense! Ok I did that but it is loading. Any ideas?
apcarter3
 
Posts: 8
Joined: Thu Apr 08, 2010 11:44 am

Re: Where should i put the code exactly ? Please help me.

PostBy apcarter3 on Fri Apr 09, 2010 11:36 am

it is working! Thank you so much for all you do!
apcarter3
 
Posts: 8
Joined: Thu Apr 08, 2010 11:44 am

PreviousNext

Return to Getting Started

Who is online

Users browsing this forum: No registered users and 0 guests