Title: Category problems
Last modified: August 19, 2016

---

# Category problems

 *  [grinch007](https://wordpress.org/support/users/grinch007/)
 * (@grinch007)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/category-problems-2/)
 * When I right a new post in the other news category it shows up fine but, when
   I click on the read more section it takes me to the last post I entered. Need
   help please. View the test site here: [http://www.shannonwheelerdesign.com](http://www.shannonwheelerdesign.com)
 * All the posts in the section take me to the same post

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [xamataca](https://wordpress.org/support/users/xamataca/)
 * (@xamataca)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/category-problems-2/#post-804847)
 * Post your loop code, it seems you handcoded that in your theme index.php and 
   forgot to delete it.
    `<?php the_content('more_link_text', strip_teaser, 'more_file');?
   >` [http://codex.wordpress.org/Template_Tags/the_content](http://codex.wordpress.org/Template_Tags/the_content)
 *  Thread Starter [grinch007](https://wordpress.org/support/users/grinch007/)
 * (@grinch007)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/category-problems-2/#post-804852)
 * I didnt code this I had psd2html do it and cannot get support from them, where
   would I put this line of code at?
 *  [xamataca](https://wordpress.org/support/users/xamataca/)
 * (@xamataca)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/category-problems-2/#post-804859)
 * It is usually at:
    wp-content/themes/”yourtheme”/index.php look for the_content()
   tag. Should put `<?php the_content('Read more'); ?>`
 * Btw, are you using a plugin called recent-post in your blog?
 *  724435
 * [17 years, 11 months ago](https://wordpress.org/support/topic/category-problems-2/#post-804861)
 * Dear client,
 * we are sorry for our delay with the reply.
    There were technical problems with
   our ISP preventing us to communicate with you using the Client Area of psd2html.
   com today. The problems are almost resolved now and we will make sure to assist
   you first thing tomorrow according to our working schedule: 10:00am – 6:00pm 
   GMT / 5:00am – 1:00pm EST
 * Thanks,
    PSD2HTML Support
 *  Thread Starter [grinch007](https://wordpress.org/support/users/grinch007/)
 * (@grinch007)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/category-problems-2/#post-804864)
 * no im not using that plug-in do i need it?
 *  [xamataca](https://wordpress.org/support/users/xamataca/)
 * (@xamataca)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/category-problems-2/#post-804870)
 * No, I asked it because plugins usually add more templates so it could be one 
   of them… just paste here the line where it is `<?php the_content('Read more');?
   >` in your theme index.php
 *  Thread Starter [grinch007](https://wordpress.org/support/users/grinch007/)
 * (@grinch007)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/category-problems-2/#post-804895)
 * Here is my index file code, what do I need to take out and what do I need to 
   add?
    Thanks.
 * <?php get_header(); ?>
    <?php //category variables $cat1 = 1; $cat2 = 5; $cat3
   = 4;
 *  $post_cat1 = get_posts(array(‘numberposts’ => 1,’category’ => $cat1));
    $descr_cat1
   = get_the_category_by_ID($cat1); $post_cat2 = get_posts(array(‘numberposts’ =
   > 1,’category’ => $cat2)); $descr_cat2 = get_the_category_by_ID($cat2); $post_cat3
   = get_posts(array(‘numberposts’ => 3,’category’ => $cat3)); $descr_cat3 = get_the_category_by_ID(
   $cat3);
 * ?>
    <div id=”main”> <div class=”column”> <?php get_sidebar(); ?> </div> <div 
   class=”content”> <div class=”top”> <div class=”inner”> <h3><span><?php echo $
   descr_cat1 ?></span></h3> </div> <div class=”inner-column”> <h3><span><?php echo
   $descr_cat3 ?></span></h3> </div> </div> <div class=”inner-content”> <div class
   =”inner”> <div class=”block”> <?php print $post_cat1[0]->post_content; ?> </div
   > <div class=”block”> <h3 class=”bord”><span><?php echo $descr_cat2 ?></span>
   </h3> <?php print $post_cat2[0]->post_content; ?> </div> </div> <div class=”inner-
   column”> <?php if(!empty($post_cat3)) { foreach($post_cat3 as $col_post) { setup_postdata(
   $col_post); $exc = get_the_excerpt(); echo ‘<p>’.$exc.’guid.'”>Read more.</p>’;}}?
   > </div> </div> </div> </div> <?php get_footer(); ?>
 *  [xamataca](https://wordpress.org/support/users/xamataca/)
 * (@xamataca)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/category-problems-2/#post-804923)
 * ops, it seems a heavy php modified theme :/
    I can’t help you here, maybe someone
   with a strong knowledge of php and wp could help you…
 *  Thread Starter [grinch007](https://wordpress.org/support/users/grinch007/)
 * (@grinch007)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/category-problems-2/#post-804929)
 * Thanks for all your help!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Category problems’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [grinch007](https://wordpress.org/support/users/grinch007/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/category-problems-2/#post-804929)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
