Forum

Please make sure that you have read the documentation and extensive resources provided on this site before posting your question!

Dynamic Content Gallery Resources

DCG Version 4.0 beta is now available for download and testing. This is a development version and not recommended for live sites. Read more here.

Note that the current stable release of the DCG is version 3.3.5.

 
You must be logged in to post Login Register


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 3 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

I'm having trouble getting it to work

UserPost

7:47 pm
January 29, 2009


B Smith

Guest

1

It looks like it is a good product but I'm having trouble getting it to work. I've tried the shortcut and the php method. The shortcut just shows[serialposts]. The php method doesn't show up at all. I'm using wordpress 2.5 and my index.php is below. I've only tried it with preview as I don't want to send out a post without testing first!

<?php get_header();?>
<div id="main">
    <div id="content">
        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
            <div class="post" id="post-<?php the_ID(); ?>">
            <p class="date">
              <span class="month">
                <?php the_time('M') ?>
              </span>
              <span class="day">
                <?php the_time('d') ?>
              </span>
              <span class="year">
                <?php the_time('Y') ?>
              </span>
              </p>
            <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
            <div class="meta">
                      <p>Published by <?php the_author_posts_link() ?>  under <?php the_category(',') ?> <?php edit_post_link(); ?></p>
                  </div>
                  <div class="entry">
              <?php the_content(__('Continue Reading &#187;')); ?>
              <?php wp_link_pages(); ?>
              <?php serial_posts(); ?>
              <p class="post-tags">
                <?php if (function_exists('the_tags')) the_tags('Tags: ', ', ', '<br/>'); ?>
              </p>
                 

           </div>

<script src="http://feeds.feedburner.com/~s/WealthAndWisdom?i=<?php the_permalink() ?>" type="text/javascript" charset="utf-8"></script>                 
                 
            <p class="comments">
              <?php comments_popup_link(__('No responses yet'), __('One response so far'), __('% responses so far')); ?>
            </p>             
            </div>
      <?php endwhile; else: ?>
          <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
      <?php endif; ?>
      <p align="center"><?php posts_nav_link(' – ','&#171; Prev','Next &#187;') ?></p>
    </div>
  <?php get_sidebar();?><?php get_footer();?>

7:06 pm
January 30, 2009


Ade

Admin

posts 2378

2

Hi,

Does it work if you remove <?php wp_link_pages(); ?> from your template file? Also, the code you posted, is it from index.php or single.php?

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

1:27 am
February 5, 2009


B Smith

Guest

3

Removing <?php wp_link_pages(); ?> worked. Thanks!

7:46 am
February 5, 2009


Ade

Admin

posts 2378

4

Great! Glad it's working OK now. Smile

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?