mundomar
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Post not appearing in their categoriesPERFECT!
Thanks so much! Not sure why it was there, guess it came on the template
Thanks again for your help!
🙂Forum: Fixing WordPress
In reply to: Post not appearing in their categoriesOr the index.php:
<?php get_header(); ?> <div id="content" class="index"> <div class="center"> <div class="inner"> <?php if(have_posts()) : while(have_posts()) : the_post(); ?> <?php the_content(); ?> <?php endwhile; endif; ?> </div> </div> </div> <?php get_footer(); ?>Forum: Fixing WordPress
In reply to: Post not appearing in their categoriesThanks so much for your reply.
I am still very new at all this code stuff. There is no Category.php but there is archive.php which is (not sure if you want to see the lot!):
<?php get_header(); ?> <!-- CONTENT BEGIN --> <?php global $page_parent_custom; $page_parent_custom = get_post_custom(); $custom_sidebar_layout = isset($page_parent_custom['custom_sidebar_layout']) ? $page_parent_custom['custom_sidebar_layout'][0] : ''; $custom_sidebar = isset($page_parent_custom['custom_sidebar']) ? $page_parent_custom['custom_sidebar'][0] : ''; ?> <div id="content" class="<?php echo $custom_sidebar_layout .' '; ?>archive"> <div class="inner"> <!-- BEFORE CONTENT SECTION BEGIN --> <!-- BEFORE CONTENT SECTION END --> <div class="content_main"> <?php $loop_cont = 0; query_posts(array( 'post_type' => 'post', 'paged' => get_query_var('paged') )); ?> <?php if(have_posts()) : while(have_posts()) : the_post(); ?> <article <?php if( $loop_cont == 0 ) echo 'class="first"'; ?>> <?php if(!get_post_format()){ get_template_part('tpl_blog', 'standard'); } else { get_template_part('tpl_blog', get_post_format()); } ?> </article> <?php $loop_cont++; endwhile; endif; // LOOP END wp_reset_query(); ?> <div class="line_2"></div> <div class="block_post_navigation"> <a href="#" class="fl general_button type_1 w_left_arrow"><span><?php _e('Older Projects', 'advantico'); ?></span></a> <a href="#" class="fr general_button type_1 w_right_arrow"><span><?php _e('Newest Projects', 'advantico'); ?></span></a> </div> <?php theme_content_nav(); ?> <div class="clearboth"></div> </div> <?php if( $custom_sidebar_layout != ''){ ?> <div class="sidebar"> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Blog sidebar') ) : else : ?> <?php endif; ?> </div> <?php } ?> <div class="clearboth"></div> <!-- AFTER CONTENT SECTION BEGIN --> <!-- AFTER CONTENT SECTION END --> </div> </div> <!-- CONTENT END --> <?php get_footer(); ?>Thanks
Forum: Fixing WordPress
In reply to: Categories and Posts issueStill playing with the site, getting the posts to look pretty good. Just need to figure out how to get them to stay within their own categories.
Any suggestions would be awesome! Thanks guys!
Forum: Fixing WordPress
In reply to: Categories and Posts issueHi Seacoast!
Thanks so much for your reply!
So, I went to each of the posts (I have only done 4 so far to test how they will look). Changed their categories all to Uncategorized. Checked the site and all my categories via the menu at the top were empty, with posts on the home page (as they should be).
Then I went back and allocated them back to each category (making sure to uncheck the uncategorized box) and checked back on the site and each category via the menu at the top has all 4 posts in each.
I switched the template back to the twenty eleven or whatever it comes preinstalled with and it looks like they are correctly in each category. (Although I am not a fan of the template)
Do you know if there is a way to get them to work in my theme correctly? I am using advantico at the moment and would really like for them to be on separate sections/pages if possible but am a complete novice at this… any solutions you can think of? Basically I have 3 topics, one for past, one for present and one for recipes… and need to keep the posts all separate
Much appreciated!!