2bak860
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Custom field data in php statementHi t31os_.
The post is the current post and the custom field is: flickr_gallery
many thanks, Ross
Forum: Fixing WordPress
In reply to: Custom field data in php statementThanks t31os_. How do I use the custom field value in my php?
<?php get_flickrRSS(array('set' => 'custom_field_value', 'num_items' => 6, 'type' => 'set', 'id' => '30735063@N03')); ?>thanks, Ross
Forum: Fixing WordPress
In reply to: Shadowbox on rel in wordpress core – post-template.php?Forum: Fixing WordPress
In reply to: Navigation – 3rd levelCan you get the 4th level using a similar method?
Forum: Fixing WordPress
In reply to: Navigation disappears after 3rd childFound a solution – thanks Esmi
Forum: Fixing WordPress
In reply to: Navigation disappears after 3rd childOnly you’re testing on specific $post->post_parent ids that won’t be valid by the 3rd level.
Oh I see! What would be valid to get the 3rd level?
thanks Esmi!
Forum: Fixing WordPress
In reply to: Navigation disappears after 3rd childThanks Esmi.
Unfortunately it doesn’t work 3 levels down, i.e.
root.com/parentpage/childpage/toypage
Is it a bug in list pages?
thanks, Ross.Forum: Fixing WordPress
In reply to: Navigation disappears after 3rd childHi Esmi,
Thanks for your help. I’m trying to get it so that every child under the alpha parent, and including the parent shows something, and every child under the beta parent, and including the parent shows something else.
I thought that if I say “if
is_page('alpha')or (II) alpha (492) is the parent, show this…What would be the fix (where has my logic gone wrong?!)?
thanks, Ross.
Forum: Fixing WordPress
In reply to: image.php conditional parent categories?How can I grab the cat_id of the post_parent – with $post->post_parent.?
thanks, Ross
Forum: Fixing WordPress
In reply to: Category Conditional in Attachment.phpHi Cais,
Thanks for your reply! I am trying to change the layout of the attachment.php page depending on the category we’re in – it goes a bit further than CSS I’m afraid.
Desired in attachment.php :.
<?php if ( in_category('pears') ){ ?> show pears <?php } elseif ( in_category('apples') ) { ?> show apples <?php } ?>thanks so much for your help,
Ross
Forum: Fixing WordPress
In reply to: Category Conditional in Attachment.phpThanks Cais. in_category won’t work because attachments don’t recognise in_category, only post>parents.
Forum: Fixing WordPress
In reply to: image.php conditional parent categories?Hi Esmi – any advice on using a conditional for
$post->post_parent?thanks, Ross
Forum: Themes and Templates
In reply to: wp_list_categories, style current category in attachment.phpI see what you mean. In that case, you could just use normal links (not wp_list_categories) and either use a conditional (if in_category) or take the post class, which should list the category the post is in and style that way.
Any luck on finding a fix for my issue? 🙂
Forum: Themes and Templates
In reply to: wp_list_categories, style current category in attachment.phpHey Esmi,
Does styling the current category work? I think the single post can only have one category:
http://codex.wordpress.org/Template_Tags/wp_list_categories#Markup_and_Styling_of_Category_Lists
thanks, Ross
Forum: Fixing WordPress
In reply to: image.php conditional parent categories?I’ve tried this and it does work – any advice? thanks, Ross
<?php global $post; if ( $post->post_parent == '3' ) { ?> 3 hautecouture <?php } elseif( $post->post_parent == '8' ) { ?> 8 lingerie <?php } ?>