WordPress.org

Ready to get started?Download WordPress

Forums

Custom fields won't display (4 posts)

  1. coolgates
    Member
    Posted 5 years ago #

    Custom fields calling a thumbnail image are not showing up on a custom category page.

    <?php query_posts('cat=695,-840&showposts=14'); ?>
      <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
          <div class="frost" id="post-<?php the_ID(); ?>">
    <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
    <img src="<?php echo get_post_meta( $post->ID,"alt_thumb", $single=true ) ; ?>">
    <?php the_excerpt(); ?>
          </div>
        <?php endwhile; else: ?>
    <?php endif; ?>

    Any ideas?

  2. coolgates
    Member
    Posted 5 years ago #

    Bump - they work on index.php and single.php, but not archive.php and any other custom category pages.

  3. coolgates
    Member
    Posted 5 years ago #

    Sorry - to clarify: index.php, single.php AND archive.php all work. The custom categories are not showing the custom fields (e.g. category-12.php). The custom category pages DO show the rest of the post, however (title, content, timestamp, etc.).

  4. 1800collect
    Member
    Posted 5 years ago #

    Coolgates you're not alone. I seem to have the exact same problem as seen here. No one seems to be addressing our problems. All I can assume is it is some kind of bug.

Topic Closed

This topic has been closed to new replies.

About this Topic