WordPress.org

Forums

full post in archive? (5 posts)

  1. wahm5
    Member
    Posted 7 years ago #

    I just installed this theme and when I go to the catagories ( http://bluebonnetweddings.com/category/bachelorette/ ) page the post does not contain the picture or any hyperlinks.

    How do I fix that?

  2. moshu
    Member
    Posted 7 years ago #

    Replace the_excerpt with the_content in the category.php or archive.php - depending what is used by your theme to display category archives.
    More: Template_Hierarchy
    Read this, too: Template_Tags look for the excerpt vs. content

  3. wahm5
    Member
    Posted 7 years ago #

    I'm not seeing that...

    <?php get_header(); ?>
    <div id="wrapper">
    <div id="content">
    <div class="mini-header">
    <div class="info"><?php include (TEMPLATEPATH . '/info.php'); ?></div>
    <div id="headerimg">
    <div class="description"><?php bloginfo('description'); ?></div>
    </div>
    </div>

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

    <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
    <?php /* If this is a category archive */ if (is_category()) { ?>
    <h2 class="pagetitle">Archive for the '<?php echo single_cat_title(); ?>' Category</h2>

    <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2>

    <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    <h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2>

    <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>

    <?php /* If this is a search */ } elseif (is_search()) { ?>
    <h2 class="pagetitle">Search Results</h2>

    <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    <h2 class="pagetitle">Author Archive</h2>

    <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    <h2 class="pagetitle">Blog Archives</h2>

    <?php } ?>

    <?php while (have_posts()) : the_post(); ?>
    <?php include (TEMPLATEPATH . '/loop.php'); ?>

    <?php endwhile; ?>

    <div id="nav-below" class="navigation">
    <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> Older posts')) ?></div>
    <div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>')) ?></div>
    </div>

    <?php else : ?>

    <h2 class="center">Not Found</h2>
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>

    <?php endif; ?>

    </div>

    <?php get_sidebar(); ?>
    <div class="clear"></div>
    </div>
    <?php get_footer(); ?>

  4. moshu
    Member
    Posted 7 years ago #

    Then get a normal theme. Yours is done by one of those idiot designers that that screw up the customization by using the same Loop in every template file - by calling it from the loop.php file.

    Another option: delete this line:
    <?php include (TEMPLATEPATH . '/loop.php'); ?> and put instead the content of the loop.php... and then proceed with the suggested changes.

  5. wahm5
    Member
    Posted 7 years ago #

    May the Gods smile on you! I found the_excerpt and changed it to content, it was in the loop file!

    Thank you, thank you!!! :o)

Topic Closed

This topic has been closed to new replies.

About this Topic