7 reputation
6
bio website blog.felixsalomon.net
location
age
visits member for 2 years, 1 month
seen Aug 28 '13 at 10:18

Oct
1
awarded  Popular Question
Apr
4
awarded  Popular Question
Feb
18
awarded  Student
Nov
28
accepted Choose template depending on URL
Nov
28
accepted get_children() returns ALL attachments instead only those attached to 'post_parent'
Nov
28
comment get_children() returns ALL attachments instead only those attached to 'post_parent'
You're right. What I do: in my template that I use to display posts within the standard loop, I make a call to above function: fs_gallery_featured_thumbs( $post->ID ) (originally I used the_ID() instead of $post->ID which gave me trouble. I guess bescause the_ID() actually echoes the ID, rihgt?).
Nov
28
comment get_children() returns ALL attachments instead only those attached to 'post_parent'
Thanks Chip, that did the trick. I passed 88 (which is the correct post ID) to the function and it worked; I then passed $post->ID rather than the_ID() and it also seems to work. It seems that it was only a stupid mistake. If you write an answer I will happily accept it. Cheers.
Nov
28
comment get_children() returns ALL attachments instead only those attached to 'post_parent'
Sorry I realized that a minute after posting and already changed it in th eoriginal question as well as the actual code. However it doesn't make a difference. post_parent is still correct, but ALL images appear (well 4 of them).
Nov
28
revised get_children() returns ALL attachments instead only those attached to 'post_parent'
Corrected a mistake ( $post_id was missing a few times )
Nov
28
asked get_children() returns ALL attachments instead only those attached to 'post_parent'
Nov
27
awarded  Scholar
Nov
27
accepted Various thumbnail sizes for Wordpress/jquery masonry gallery
Nov
27
comment Various thumbnail sizes for Wordpress/jquery masonry gallery
Finally got around to check back. Thanks for the input, I ended up adding a custom field to the attachment edit screen where I can set one of several thumbnail sizes for each image individually.
Nov
24
comment Choose template depending on URL
Actually, can I not (in theory) use URL rewrite rules to redirect as many URLs as I want to the same page (in this case the same post)?
Nov
24
comment Choose template depending on URL
... maybe you have a bette ridea how to deal with this situation?
Nov
24
comment Choose template depending on URL
Thanks. Please check my addition to the original question for the reasoning behind this question.
Nov
24
revised Choose template depending on URL
Provided additional reasoning/information
Nov
24
revised Choose template depending on URL
improved readability, further information added
Nov
24
awarded  Editor
Nov
24
revised Choose template depending on URL
Improved readability and additional information