Support » Fixing WordPress » Difficulty displaying posts from one category on a page

  • Resolved AvatarAang

    (@avataraang)


    Hi all,

    I’m helping a friend with a website and am having some trouble with how posts are displaying. I used this really helpful forum post and managed to get the respective pages pulling in from the proper categories.

    What I’d like is for the content to be styled more like the homepage (with date of post too). Right now, the font is all under the H1 style and I’m not sure how to change it for these respective pages. I’d like the content font to be more like the paragraph style of the actual posts rather than displaying as h1 (at least that’s what I think is happenning).

    Here’s the site:
    http://www.whattheforklisa.com/

    The posts with the category ‘recipes’ go to the recipe pages and tips to the tips page.

    Here’s the code I have replicated on both the recipes page template and tips page template:

    <?php
    get_header(); ?>
    
    		<div id="primary">
    			<div id="content" role="main">
    
    				<?php
    query_posts('cat=1');
    while (have_posts()) : the_post(); ?>
    
    <h1 class="entry-title"><a href="<?php the_permalink() ?>">
    <?php
    the_title(); ?>
    
    <style="
    <?php
    the_content();
    endwhile;
    ?>
    			</div><!-- #content -->
    		</div><!-- #primary -->
    
    <?php get_footer(); ?>

    Thanks in advance for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Difficulty displaying posts from one category on a page’ is closed to new replies.