Title: TheBenStarr's Replies | WordPress.org

---

# TheBenStarr

  [  ](https://wordpress.org/support/users/thebenstarr/)

 *   [Profile](https://wordpress.org/support/users/thebenstarr/)
 *   [Topics Started](https://wordpress.org/support/users/thebenstarr/topics/)
 *   [Replies Created](https://wordpress.org/support/users/thebenstarr/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/thebenstarr/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/thebenstarr/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/thebenstarr/engagements/)
 *   [Favorites](https://wordpress.org/support/users/thebenstarr/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Modifying the Loop for category templates](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/)
 *  Thread Starter [TheBenStarr](https://wordpress.org/support/users/thebenstarr/)
 * (@thebenstarr)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/page/2/#post-2750377)
 * Ouch…methinks DigitalRaindrops has moved on to more pressing matters! If anyone
   has any suggestions by looking at the code he was so generous to modify for me…
   and if you have any clue why it would return appropriate results on HIS installation
   of WP, but not MINE, I would be eternally grateful.
 * You’d think it’d be easy to have a page listing the titles of all posts in a 
   category, but apparently it’s not! 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Modifying the Loop for category templates](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/)
 *  Thread Starter [TheBenStarr](https://wordpress.org/support/users/thebenstarr/)
 * (@thebenstarr)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/page/2/#post-2750357)
 * My apologies, those were thumbnail screen shots. Here are normal size screen 
   shots:
 * [https://lh6.googleusercontent.com/-sTIdRaYllVM/T7gy9M9VJmI/AAAAAAAAC8w/fez0Hh7Dduk/s576/ss1.jpg](https://lh6.googleusercontent.com/-sTIdRaYllVM/T7gy9M9VJmI/AAAAAAAAC8w/fez0Hh7Dduk/s576/ss1.jpg)
 * [https://lh5.googleusercontent.com/-Rz7jK2B_oO0/T7gy8-Bhy4I/AAAAAAAAC8o/3MmG0MfFeJY/s800/ss2.jpg](https://lh5.googleusercontent.com/-Rz7jK2B_oO0/T7gy8-Bhy4I/AAAAAAAAC8o/3MmG0MfFeJY/s800/ss2.jpg)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Modifying the Loop for category templates](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/)
 *  Thread Starter [TheBenStarr](https://wordpress.org/support/users/thebenstarr/)
 * (@thebenstarr)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/page/2/#post-2750356)
 * Screenshots: (please ignore lack of styling on the website screen shot, I haven’t
   styled the site yet)
 * [https://lh6.googleusercontent.com/-sTIdRaYllVM/T7gy9M9VJmI/AAAAAAAAC8w/fez0Hh7Dduk/h120/ss1.jpg](https://lh6.googleusercontent.com/-sTIdRaYllVM/T7gy9M9VJmI/AAAAAAAAC8w/fez0Hh7Dduk/h120/ss1.jpg)
 * [https://lh5.googleusercontent.com/-Rz7jK2B_oO0/T7gy8-Bhy4I/AAAAAAAAC8o/3MmG0MfFeJY/h120/ss2.jpg](https://lh5.googleusercontent.com/-Rz7jK2B_oO0/T7gy8-Bhy4I/AAAAAAAAC8o/3MmG0MfFeJY/h120/ss2.jpg)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Modifying the Loop for category templates](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/)
 *  Thread Starter [TheBenStarr](https://wordpress.org/support/users/thebenstarr/)
 * (@thebenstarr)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/page/2/#post-2750355)
 * Well…it’s still not working! Grrr…
 * I saved both files as stated, page-category.php and loop-title.php.
 * I uploaded them both.
 * I created a new page entitled Desserts using the new Category Page template. (
   The page slug was set as: Desserts but defaulted to lower case desserts after
   I saved it.)
 * I still get ALL titles for all categories displayed when I view the page.
 * By the way, all this is taking place in a child theme for Coraline. Could that
   be having an effect?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Modifying the Loop for category templates](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/)
 *  Thread Starter [TheBenStarr](https://wordpress.org/support/users/thebenstarr/)
 * (@thebenstarr)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/page/2/#post-2750329)
 * David, you are AMAZING. I haven’t yet had time to test because I’m on the road
   to California, but I hope to get around to it tonight. I would be SO ecstatic
   if you’d let me send you some cookies. You can email me a good shipping address
   at ben at benstarr.com.
 * Again…I can’t thank you enough, you took an inordinate amount of your own time
   to help me out on this. THANK YOU!!!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Modifying the Loop for category templates](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/)
 *  Thread Starter [TheBenStarr](https://wordpress.org/support/users/thebenstarr/)
 * (@thebenstarr)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/#post-2750290)
 * David, I also tried this…in the page-category.php file:
 * `* A custom page template Page Name = Category Name .`
 * I replaced Category Name with Desserts
 * Same result…a full list of all posts titles, regardless of category.
 * I feel like this is something I’m neglecting to do with your code, because your
   code looks rock solid.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Modifying the Loop for category templates](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/)
 *  Thread Starter [TheBenStarr](https://wordpress.org/support/users/thebenstarr/)
 * (@thebenstarr)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/#post-2750289)
 * David, in my first attempt I did save the first file as page-category.php and
   got the full list of every post in every category, so in my second attempt I 
   named the first file page-desserts.php thinking that would make the distinction
   so the loop only called posts from category desserts. Same result each time, 
   though.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Modifying the Loop for category templates](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/)
 *  Thread Starter [TheBenStarr](https://wordpress.org/support/users/thebenstarr/)
 * (@thebenstarr)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/#post-2750288)
 * David, first off…you are amazing to help me like this, and I’m going to send 
   you the biggest box of cookies and cupcakes you’ve ever seen.
 * Second…we’re VERY close. This actually DID render a list of post titles, but 
   it’s ALL the titles of ALL my posts.
 * I saved the page as page-desserts.php
    I created a new page called DESSERTS, 
   selected the Category Page template (I did not change the name of this, maybe
   that’s the problem?)
 * The page displays all titles from ALL posts in my blog, regardless of category.
 * Any tweaks I can make so that it only shows titles from the DESSERTS category?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Modifying the Loop for category templates](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/)
 *  Thread Starter [TheBenStarr](https://wordpress.org/support/users/thebenstarr/)
 * (@thebenstarr)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/#post-2750180)
 * Was I supposed to change some of the information in the page template other than
   the title? Like this section?
 * ‘category_name’ => $slug,
    ‘paged’ => $paged
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Modifying the Loop for category templates](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/)
 *  Thread Starter [TheBenStarr](https://wordpress.org/support/users/thebenstarr/)
 * (@thebenstarr)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/#post-2750179)
 * David, I can’t thank you enough for your help. I used this new template you sent…
   I saved it as category-desserts.php and I changed the heading so it registers
   as the template: desserts
 * I uploaded it to my Coraline-child folder.
 * I created a new page called “desserts” and selected the Desserts template and
   published it. When I attempt to preview it, I just get a spinning cursor…nothing
   is rendered at all.
 * Any suggestions? I’m about to pull a second mortgage so I can afford an expert
   to come to my house and figure this out. Ugh…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Modifying the Loop for category templates](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/)
 *  Thread Starter [TheBenStarr](https://wordpress.org/support/users/thebenstarr/)
 * (@thebenstarr)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/#post-2750166)
 * David, I pulled the code you gave me and saved it as loop-titles.php and uploaded
   it to the Coraline theme folder.
 * Then, I created category-desserts.php from the category.php file and it looks
   like this:
 * _[[code moderated – please use the pastebin](http://codex.wordpress.org/Forum_Welcome#Posting_Code),
   if the code exceeds 10 lines]_
 * Then I created a page using the new Desserts template. Unfortunately, no posts
   load. 🙁 However, you just made some edits, so I’m going to try what you just
   posted…
 * You are SO amazing to be helping me out like this…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Modifying the Loop for category templates](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/)
 *  Thread Starter [TheBenStarr](https://wordpress.org/support/users/thebenstarr/)
 * (@thebenstarr)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/#post-2750156)
 * David, please disregard the previous message. My brain is farting. You sent me
   code, I’m working on it…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Modifying the Loop for category templates](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/)
 *  Thread Starter [TheBenStarr](https://wordpress.org/support/users/thebenstarr/)
 * (@thebenstarr)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/#post-2750153)
 * David…thank you, I THINK I comprehend this. Though all that nasty code in loop.
   php is too complex for me to understand. Can I just replace it with simple loop
   code from previous versions of WP? My loop.php has all sorts of exceptions for
   displaying different types of content. I really just need a simple query string
   to display content from one category, titles only…does this look right?
 *     ```
       <?php
   
       query_posts( '$query_string.'&posts_per_page=1000&category_name = desserts' );
   
       if ( have_posts() ) while ( have_posts() ) : the_post();
   
       echo '<li>';
   
       the_title();
   
       echo '</li>';
   
       endwhile;
   
       wp_reset_query(); ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Modifying the Loop for category templates](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/)
 *  Thread Starter [TheBenStarr](https://wordpress.org/support/users/thebenstarr/)
 * (@thebenstarr)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/modifying-the-loop-for-category-templates/#post-2750139)
 * But won’t this code mess everything up by also calling the loop from loop.php?
 * `get_template_part( 'loop', 'category' );`
 * Also, the loop has become FAR more advanced than the simple “poetry” loop that
   is described in all the books and 99.999% of examples in this forum and around
   the internet. There’s no a `<?php the_content() ?>` for me to delete anywhere
   in loop.php to ensure that only the title of the post is displayed.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to make a page a menu of subcategories](https://wordpress.org/support/topic/how-to-make-a-page-a-mneu-of-subcategories/)
 *  Thread Starter [TheBenStarr](https://wordpress.org/support/users/thebenstarr/)
 * (@thebenstarr)
 * [14 years ago](https://wordpress.org/support/topic/how-to-make-a-page-a-mneu-of-subcategories/#post-2706383)
 * I should clarify that I have read dozens of posts on similar subject matter in
   this forum and around the net. But all the responses list lines and lines of 
   PHP. I’ve never typed a single line of PHP in my life, and was hoping WordPress
   had advanced to the point where an issue this common could be handled without
   hacking the code. If not, please tell me…I’ll have to start saving my pennies
   and quarters for a WordPress pro. I’ve been broke since reality TV took over 
   my life, and I’ve GOT to get my new site up before I start making actual green
   money, rather than just legions of fans who think that, because I’m mildly famous,
   I’m fabulously wealthy!

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