qbscapital
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Showing posts on Pages based on CategoriesThanks wprock and MAS.
I tried those two things and it is still not working
here is the code below for my page-events.php file. Where exactly should I put this line of code?
<?php get_header(); ?>
<div id=”columns”>
<div id=”centercol”>
<div class=”box”>
<div class=”top”></div>
<div class=”spacer”><?php if(have_posts()) : ?><?php while(have_posts()) : the_post() ?>
<div id=”post-<?php the_ID(); ?>” class=”post”>
<div class=”entry”>
<?php the_content(); ?>
</div></div>
<!–/post–><?php $comm = get_option(‘woo_comments’); if ( ($comm == “page” || $comm == “both”) ) : ?>
<div id=”comments”><?php comments_template(”, true); ?></div>
<?php endif; ?><?php endwhile; else : ?>
<div class=”post box”>
<div class=”entry-head”><h2><?php _e(‘404 – Not Found’,woothemes); ?></h2></div>
<div class=”entry-content”><p><?php _e(‘The page you are looking for is not here.’,woothemes); ?></p></div>
</div><?php endif; ?>
<div class=”fix”></div>
</div>
<!–/spacer –>
<div class=”bot”></div>
</div>
<!–/box –>
</div>
<!–/centercol –><?php get_sidebar(); ?>
<br class=”fix” />
</div>
<!–/columns –><?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: Showing posts on Pages based on CategoriesI guys. Thanks for the help.
I am html illiterate so the solution from @mas sounds good except I donnt know what he means by
“Now add the following code before the “if” condition.
<?php
query_posts(‘category_name=events&posts_per_page=-1’);
?>”What if statement in which file? do i do this in the page-events.php or in category-events.php