spicer
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Google analytics?Thanks for the help.
Sorry where would the options page be on 2.7? Do you mean the theme options page?
Regards
DanForum: Fixing WordPress
In reply to: Problem with query_posts showing category posts?As you can see I’m very new to programming. All i am trying to do is get the category page to show the posts from that category.
Forum: Fixing WordPress
In reply to: Problem with query_posts showing category posts?Thanks for your comments.
My new category-3.php looks like this but it is still not pulling the posts as you can see from http://www.nomorenoodles.co.uk/?cat=3
<?php get_header() ?> <div id="featured" class="small"> <?php include(TEMPLATEPATH . '/includes/featured-small.php'); ?> </div> <div id="main-top"> </div> <div id="main"> <div id="maincontent"> <?php query_posts('cat=3'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php if($counter==1){ $counter++; } else { ?> <div class="postwrapper clearfix"> <div class="bubble"><?php comments_popup_link('0', '1', '%'); ?></div> <h1 class="post"><a id="post-<?php the_ID(); ?>" href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a> <?php edit_post_link('Edit'); ?></h1> <div class="posted">Posted on <span><?php the_time('l, F j, Y'); ?></span> in <span><?php the_category(', ') ?></span></div> <?php the_content('Continue Reading'); ?> <?php if (function_exists('the_tags')) { ?> <?php the_tags('<div class="tags">Tags: ', ', ', '</div>'); ?> <?php } ?> </div> <?php $counter++; } ?> <?php endwhile; ?> <?php else : ?> <h1>Not Found</h1> <p>Sorry, but you are looking for something that isn't here.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <div class="postmeta"></div> <?php endif; ?> <div class="clearboth"></div> <div class="navigation"> <div class="alignleft"><?php next_posts_link('« Previous Posts') ?></div> <div class="alignright"><?php previous_posts_link('Next Posts »') ?></div> </div> </div> <?php get_sidebar() ?> <div class="clearboth"></div> </div> <?php get_footer() ?>I just dont know what the problem is, so annoying and just about given up im just typing news posts straight into the page now.
Forum: Fixing WordPress
In reply to: Problem with query_posts showing category posts?I didnt think i needed the query but because when i clicked on the category none of the posts show up i thought there must be a problem.
I read that when category.php doesnt exist which it doesnt it pulls the template from index.php and when i clicked on my category no posts were shown so i thought it must need a query.Forum: Fixing WordPress
In reply to: Categories not showing posts?Does anyone know the query code i need to put into the file if i create a category.php?
Forum: Fixing WordPress
In reply to: Categories not showing posts?Ok…ive changed my theme to various other themes and the posts do show under the correct category page so i believe it seems to be my current theme which is stopping the category pages from showing any posts.
Ive read that when there is no category.php the template reverts back to the index.php file and i believe this is where the problem is…
This is my current index.php code:
<?php get_header() ?> <div id="featured"> <?php include(TEMPLATEPATH . '/includes/featured.php'); ?> </div> <div id="main-top"> </div> <div id="main"> <div id="maincontent"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php if($counter==1){ $counter++; } else { ?> <div class="postwrapper clearfix"> <div class="bubble"><?php comments_popup_link('0', '1', '%'); ?></div> <h1 class="post"><a id="post-<?php the_ID(); ?>" href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a> <?php edit_post_link('Edit'); ?></h1> <div class="posted">Posted on <span><?php the_time('l, F j, Y'); ?></span> in <span><?php the_category(', ') ?></span></div> <?php the_content('Continue Reading'); ?> <?php if (function_exists('the_tags')) { ?> <?php the_tags('<div class="tags">Tags: ', ', ', '</div>'); ?> <?php } ?> </div> <?php $counter++; } ?> <?php endwhile; ?> <?php else : ?> <h1>Not Found</h1> <p>Sorry, but you are looking for something that isn't here.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <div class="postmeta"></div> <?php endif; ?> <div class="clearboth"></div> <div class="navigation"> <div class="alignleft"><?php next_posts_link('« Previous Posts') ?></div> <div class="alignright"><?php previous_posts_link('Next Posts »') ?></div> </div> </div> <?php get_sidebar() ?> <div class="clearboth"></div> </div> <?php get_footer() ?>Is anyone able to see if there is something in that code stopping my posts from showing on their respective category pages?
Forum: Fixing WordPress
In reply to: Categories not showing posts?Ive looked in my themes folder and seen that there is no category.php file anywhere….could this be a problem?
Forum: Fixing WordPress
In reply to: Seperate posts on a blog page?Thanks for the reply. Its just i am using a downloaded theme and i think the homepage is set for posts and im not sure i can change it to be a static page….
Forum: Plugins
In reply to: Questionnaire plugin?Ahh thanks, i was searching for questionnaire.