Assuming you’ve ‘regenerated’ our permalinks by updating via Administration > Settings > Permalinks then please paste all the code from the theme template file (probably index.php) that is displaying those posts into a pastebin such as wordpress.pastebin.ca, and report the link back here. Maybe someone can spot your problem. Thanks.
Thread Starter
ithew
(@ithew)
thanks for the reply!
here is what i have..it’s actually my home.php
here is the link
http://wordpress.pastebin.ca/1693366
Thread Starter
ithew
(@ithew)
Thanks for the reply…i’ve read that codex post but still cant find any reasoning as to why my home page doesnt go to the 2nd page of posts like my blog does
Thread Starter
ithew
(@ithew)
Not sure what you are trying to accomplish on your main page, but it looks like your are trying to display only posts in category 39.
Try this:
<?php get_header(); ?>
<div id="content">
<?php query_posts($query_string . '&cat=39'); ?>
<?php if(have_posts()): while(have_posts()): the_post(); ?>
<div class="post">
<a href="<?php the_permalink(); ?>"><h2 class="postTitle"><?php the_title(); ?></h2></a>
<?php $customFields = get_post_custom(get_the_ID()); if(isset($customFields['project']) && !empty($customFields['project'])): ?>
<p class="projectType"><?php $x=$customFields['project'][0];?></p>
<?php endif; ?>
<div class="entry">
<?php the_content(); ?>
</div>
</div>
<?php endwhile; endif; ?>
<div class="navigation">
<?php posts_nav_link(); ?>
</div>
</div>
<?php get_footer(); ?>
Not sure what you are doing with this line but I had to change it to parse correctly
<p class="projectType"><?php $x=$customFields['project'][0];?></p>
Related:
Stepping Into Template Tags
Stepping Into Templates
Template Hierarchy
Custom Fields
Thread Starter
ithew
(@ithew)
Interesting…
what I am trying to do is on my home page…have it be all my “home” category posts…
i don’t understand why my blog is working perfectly…everything is categorized the same way with “blog” when I post it
it doesn’t make sense to me why the next page doesn’t show the older posts in the “home” category, it just shows the same…and there is more posts in the “home” category…around 10 that should show up
this is what it looks like when I start a new post…I have to check what category it goes into
http://grab.by/Tej
and here is my new home.php with the fixes you just posted
http://wordpress.pastebin.ca/1694472
p.s. i really appreciate you taking the time to help me
Thread Starter
ithew
(@ithew)
ooops!!
I guess I just needed my theme to refresh…it works perfectly now!!!
thank you thank you so much!!
Thread Starter
ithew
(@ithew)
actually…not there is another problem…with that fix…it completely removed all the custom field text from the post
what used to happen was it was display each post, and then under the post title it would have the text i put in the custom fields menu….and the custom field for each was project…
how can I get this back?
Well that’s the line of code I didn’t understand what you were doing.
From your original pastebin:
<p class="projectType"><?=$customFields['project'][0];?></p>
So review Custom Fields.
Thread Starter
ithew
(@ithew)
amazing, I appreciate all your help…I don’t know a whole lot about this stuff so I thank you for taking your time to help me!