Title: Categories Loading Improperly
Last modified: August 20, 2016

---

# Categories Loading Improperly

 *  [biggupp](https://wordpress.org/support/users/biggupp/)
 * (@biggupp)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/categories-loading-improperly/)
 * [http://ahy4life.com/test2/index2.php](http://ahy4life.com/test2/index2.php)
 * There are two categories here: ‘new_event’ and
    ‘event-short_description’.
 * The output where it says “WELLNESS BECOMES YOU”, in the first instance, should
   be coming from the new_event . Not sure what I am missing in the code below.
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * Thanks

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

 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/categories-loading-improperly/#post-2513183)
 * I don’t see where it says wellness becomes you, is that the output of the title?..
   I don’t see it on your site either.
 * what is the goal? are you just trying to show 2 category links?
 *  Thread Starter [biggupp](https://wordpress.org/support/users/biggupp/)
 * (@biggupp)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/categories-loading-improperly/#post-2513185)
 * Sorry, I’ve been trying to fix this. If you would, pls try again. It is the area
   that says: “EVENT-LONG_DESC TITLE”
 * Thanks again.
 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/categories-loading-improperly/#post-2513187)
 * I see that, but I’m not sure whats going on. is it a category link?
 *  Thread Starter [biggupp](https://wordpress.org/support/users/biggupp/)
 * (@biggupp)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/categories-loading-improperly/#post-2513195)
 * I wish to call the title of one category title of ‘event-long_description’ on
   top, and the category content ‘event-short_description’.
    What am I missing from
   my code?
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 *  Thread Starter [biggupp](https://wordpress.org/support/users/biggupp/)
 * (@biggupp)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/categories-loading-improperly/#post-2513197)
 * Do I have to put the section
    <!- event-short_description category content output
   here -> in a separate div or container or such?
 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/categories-loading-improperly/#post-2513203)
 * if you just need a link to a specific category:
 *     ```
       <a href=" <?php echo get_category_link(10);?> ">category name</a>
       ```
   
 * replace the number 10 with your category id, then enter the name for the link.
 *  Thread Starter [biggupp](https://wordpress.org/support/users/biggupp/)
 * (@biggupp)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/categories-loading-improperly/#post-2513222)
 * Tried that with the code below. No difference. What am I missing?
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 *  Thread Starter [biggupp](https://wordpress.org/support/users/biggupp/)
 * (@biggupp)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/categories-loading-improperly/#post-2513223)
 * This code, actually (maybe the SOPA protest is affecting this). Otherwise, pls
   look at the page itself for the code:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 *  Thread Starter [biggupp](https://wordpress.org/support/users/biggupp/)
 * (@biggupp)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/categories-loading-improperly/#post-2513224)
 * Yeah, I think the protest is censoring this willy-nilly. Time to end censorship.
   Thanks again for the hand.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/categories-loading-improperly/#post-2513234)
 * The SOPA protest has nothing to do with it.
 * 1. You are not posting properly by enclosing code/markup snippets between backticks
   or using the code button.
 * 2. You are posting too much code (no more than 10 lines, please).
 *  Thread Starter [biggupp](https://wordpress.org/support/users/biggupp/)
 * (@biggupp)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/categories-loading-improperly/#post-2513235)
 * I am trying a new tac using the_excerpt . Pls standby
 *  Thread Starter [biggupp](https://wordpress.org/support/users/biggupp/)
 * (@biggupp)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/categories-loading-improperly/#post-2513269)
 * [http://ahy4life.com/test2/index2.php](http://ahy4life.com/test2/index2.php)
 * Alright, I am trying to start fresh using the_excerpt and the_title using the
   code below. But there is a “0” that keeps appearing. How can I fix this?
 * ‘
    <?php $category = get_the_category(); echo $category[5]->event-long_description;?
   ><?php the_title();?> ‘
 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/categories-loading-improperly/#post-2513277)
 * I’m pretty sure you can’t get output from a category link, have to query_posts,
 * This will get a specified # of posts as titles and excerpts in 1 category,
 *     ```
       <?php query_posts('category_name=category-3&showposts=3'); ?>
       <?php while (have_posts()) : the_post(); ?>
       <p><?php the_title();?></p>
       <p><?php the_excerpt(); ?></p>
       <?php endwhile;?>
       <?php wp_reset_query();?>
       ```
   
 * But if it works can depend on where you use it.
 * This will let you show a link to a category, with the category name as the link
   button.
 *     ```
       <?php $category_id = get_cat_ID( 'Category Name' );
       $category_link = get_category_link( $category_id );
       ?><p><a href="<?php echo esc_url( $category_link ); ?>" title="Category Name">Category 3</a></p>
       ```
   

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

The topic ‘Categories Loading Improperly’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 13 replies
 * 3 participants
 * Last reply from: [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/categories-loading-improperly/#post-2513277)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
