rickdavidson
Forum Replies Created
-
Forum: Themes and Templates
In reply to: List posts in category AND subcategoriesAnyone? No-one? ??
Forum: Themes and Templates
In reply to: List posts in category AND subcategoriesSure thing alchymyth, thank you. I used the code you posted earlier, i think you’re probably right on the repeating loops. Here’s the full template ??
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Themes and Templates
In reply to: List posts in category AND subcategoriesHmm, the link example is pretty close, but if you take a look, Rehab forearm 1 is a subcategory item under REHAB FOREARM. So it shouldn’t be listing at the top under the main category as well. So I need something like:
MAIN CATEGORY HEADING
list main category items only
SUB CATEGORY HEADING
list sub category items only
SUB CATEGORY HEADING
list sub category items only
??Forum: Themes and Templates
In reply to: List posts in category AND subcategoriesBunny hi! Sorry I never got your post. No I am STILL trying to fix.
If you look at the list –
https://www.kawikadesign.com/domains/tubularequipment.co.nz/Catalogue/01-walking-frames/the first four items are actually subcategories. They display again under their subcategories at the bottom. I really just need these to display only under the subcats. The rest is perfect.
SO the final version would be:
List all items in the main category
Then list all the items in the subcategories under their headings.Would LOVE if I could get help here.
Forum: Themes and Templates
In reply to: List posts in category AND subcategoriesHey Alchy,
Thank you so much for your help. Sorry, I’ve only just had a chance to look at this.
Very close! My only problem now is that the child categories are listed under the main section, and then again under their child section – see >
https://www.kawikadesign.com/domains/tubularequipment.co.nz/Catalogue/01-walking-frames/
The ‘cat=’ query doing that? Sorry I’m no expert ??
Forum: Themes and Templates
In reply to: List posts in category AND subcategoriesHey Alchymyth, thanks but yes that’s what I’m after, the sub-categories listed, but including the top level as well ?? Trickier than I thought…
Forum: Themes and Templates
In reply to: Custom category page display subcategories with postsThis is just what I want – BUT it only shows sub categories and omits all posts in the parent category. Would anyone have a tweak to show the top level as well?
Forum: Fixing WordPress
In reply to: No file upload?? WP 2.2Hey thanks Anderton, not sure why the uploader has simply vanished but I’ll try that, looks nice.
If anyone has a solution would appreciate it as it’s also killed the preview window.
Forum: Fixing WordPress
In reply to: No file upload?? WP 2.2Anyone? ?? I see others with similar problems but no resolution
Forum: Plugins
In reply to: Lightbox on particular theme not workingHi there, guess you’re long over this one but for future reference, I had the same problem – this theme and maybe others is missing the line:
<?php wp_head();?>
in the head… also seems to be missing the close tag – </head> as well .. Putting this in will enable Lightbox and other plugins.
Forum: Fixing WordPress
In reply to: How do I get the link description to show in blogroll?Any solutions here? ?? Same prob…
Forum: Fixing WordPress
In reply to: show at least X posts on front page (category hidden)Anyone? ??
Forum: Fixing WordPress
In reply to: How to? Display X posts without counting hidden categoryCan anyone help with this? A lot of people seem to have the same problem…
Forum: Fixing WordPress
In reply to: show at least X posts on front page (category hidden)Thanks for the post but no help ??
I have one hidden category in the loop that I display seperately on the page so I cant block completely from the page. As the loop counts hidden cats and I only show one post in the loop I can end up with a blank if that post happens to be hidden.
I need to completely omit the hidden category from the loop ‘count’… ummm?
Forum: Fixing WordPress
In reply to: How to? Display X posts without counting hidden categoryHey, sorry I’m a php beginner. Grabbed the code from that other post, does this function go inside the loop or before? I’ve tried playing around but it just seems to repeat the last post. And is it possible to add more than one category?
<?php function modify_where_clause($where) {
global $wp_query, $wpdb;
if ($wp_query->is_home && !strstr($where,’category_id’))
$where .= ” AND ID NOT IN (SELECT post_id FROM $wpdb->post2cat WHERE category_id=10)”;
return $where;
}
add_filter(‘posts_where’,’modify_where_clause’); ?>