TheBenStarr
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Modifying the Loop for category templatesOuch…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
In reply to: Modifying the Loop for category templatesMy apologies, those were thumbnail screen shots. Here are normal size screen shots:
https://lh6.googleusercontent.com/-sTIdRaYllVM/T7gy9M9VJmI/AAAAAAAAC8w/fez0Hh7Dduk/s576/ss1.jpg
https://lh5.googleusercontent.com/-Rz7jK2B_oO0/T7gy8-Bhy4I/AAAAAAAAC8o/3MmG0MfFeJY/s800/ss2.jpg
Forum: Fixing WordPress
In reply to: Modifying the Loop for category templatesScreenshots: (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://lh5.googleusercontent.com/-Rz7jK2B_oO0/T7gy8-Bhy4I/AAAAAAAAC8o/3MmG0MfFeJY/h120/ss2.jpg
Forum: Fixing WordPress
In reply to: Modifying the Loop for category templatesWell…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
In reply to: Modifying the Loop for category templatesDavid, 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
In reply to: Modifying the Loop for category templatesDavid, 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
In reply to: Modifying the Loop for category templatesDavid, 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
In reply to: Modifying the Loop for category templatesDavid, 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
In reply to: Modifying the Loop for category templatesWas I supposed to change some of the information in the page template other than the title? Like this section?
‘category_name’ => $slug,
‘paged’ => $pagedForum: Fixing WordPress
In reply to: Modifying the Loop for category templatesDavid, 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
In reply to: Modifying the Loop for category templatesDavid, 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, 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
In reply to: Modifying the Loop for category templatesDavid, please disregard the previous message. My brain is farting. You sent me code, I’m working on it…
Forum: Fixing WordPress
In reply to: Modifying the Loop for category templatesDavid…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
In reply to: Modifying the Loop for category templatesBut 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
In reply to: How to make a page a menu of subcategoriesI 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!