paa1605
Forum Replies Created
-
I see!
Thanks for pointing that out. The only problem i have is that each product/post is categorised with both ‘Nike’ and ‘Nike Golf Clubs’ because on the ‘Nike’ page i show a selection of products that are in both the category of ‘best seller’ and the current category id (in this case ‘Nike’). If i only categorise the product by ‘best seller’ and ‘Nike Golf Clubs’ the query returns no results.
I’m therefore guessing that i need to change the code so that my query asks to show posts in the category of ‘best seller’ and child of cat id. Is this correct?
Thanks
Forum: Fixing WordPress
In reply to: How to shows posts that are in two categories?Thanks very much! Worked a treat!
Forum: Fixing WordPress
In reply to: Help needed with 'else' statementExcellent, thanks! Works a treat!
Forum: Fixing WordPress
In reply to: Conditional help for category.phpI appear to have found a solution! I added this code into my category.php file and it now works
<?php if (cat_is_ancestor_of(4, $cat) or is_category(4)) { ?>
<? } ?>Thanks for the help anyway.
Forum: Fixing WordPress
In reply to: Conditional help for category.phpThanks for the reply.
I think the query needs to be is_category rather than in_category as i want a certain parent category and its child categories to have the same layout, hence the conditional tag. The ‘in_category’ tag seems to relate to what posts are shown on specific category archives, not the layout of each archive page. Do you know how to check for this instead?
Thanks for the reply. My site has category pages for brand profiles eg nike, and category pages for product type eg golf clubs. When viewing the product type category archives, such as golf clubs, there is an option to filter results based on a taxonomy named ‘manufacturer’. Having no category pages for brands and just a taxonomy named brands would not allow me to do this. Sorry if this is a little complicated, i would show you the site but its not gone live just yet. I was just wondering if it is actually possible to hide a category page from the breadcrumb? Thanks.
Anyone got any ideas?
Forum: Fixing WordPress
In reply to: Category URL problemThanks for the reply. I seem to have cracked it for now. I found a plugin called ‘no category base’ and it appears to have worked. Fingers crossed it stays that way!
Well after spending most of the day trying to find an answer to this it seems that its not possible in the current version of wordpress. However…version 3.1 will include new taxonomy query options that will make this a reality!! Happy days! Roll on the release.
Anyone got any idea?
Forum: Fixing WordPress
In reply to: How do you display custom field data of a pages sub page??Thanks again for the reply. Sorry to sound like a fool but im quite new to wordpress and i don’t fully understand what you mean. On the sub pages, i have a custom field with a name of ‘page_thumbnail’. The value is the href link to the image. On the parent page i have added the following code where i want the custom field image to go but it doesn’t seem to change anything…
<?php $meta_values = get_post_meta($page->id, ‘page_thumbnail’, $single = true); ?>
<?php echo $meta_values ?>
Could you tell me where im going wrong? Thanks.
Forum: Fixing WordPress
In reply to: How do you display custom field data of a pages sub page??Thanks for the reply. I know how to display custom fields but what im trying to do here is ask wordpress to see if the current page id has any sub pages, and if it does, display the heading and custom field thumbnail for each of those sub pages on the current page. I had a look at the page you suggested but it doesn’t seem to tell me how to do this. The code im currently can be seen here:
Forum: Fixing WordPress
In reply to: How Do You Display Posts In A Horizontal Manner?Thanks, i never thought of that!
Forum: Fixing WordPress
In reply to: How to list taxonomy terms by first letter?Thanks Mac, this worked perfectly. However, i’ve slightly changed the site and instead of listing the terms from the ‘brands’ taxonomy in an a-z format, i would like to instead list the sub pages of the ‘brands’ page, again in an a-z format, with wordpress first checking to see if the alphabet letter does have any pages starting with it, and then displaying them in a list as links. I’ve tried to adapt the code above but my php knowledge is quite limited and when i did i got the dreaded blank white screen! If you, or anyone else could help i would be extremely grateful. Thanks,
PatrickForum: Fixing WordPress
In reply to: Help Needed: Show posts in different divs? Screenshots included!Thanks for the quick reply. I’ve already created the necessary divs with the correct styling so in your above example would it be as simple as replacing ‘offer-left’ and ‘offer-right’ with my equivalents?