[wp-testers] gallery
Philip M. Hofer (Frumph)
philip at frumph.net
Fri Dec 24 06:24:26 UTC 2010
yeah $id is proper
$_attachments = get_posts( array('post_type' => 'attachment') );
var_dump($_attachments);
This is returning empty.
----- Original Message -----
From: <michael at mfields.org>
To: <wp-testers at lists.automattic.com>
Sent: Thursday, December 23, 2010 10:20 PM
Subject: Re: [wp-testers] gallery
> Have you tried var_dump( $id );? I think that it is more likely an issue
> with not having a proper $id set. Both include and exclude are only used
> if they have a non-empty value. There is a fallback to get_children() a
> few lines down which doesn't use either.
>
>> i'm thinking it's this part
>>
>> extract(shortcode_atts(array(
>> 'order' => 'ASC',
>> 'orderby' => 'menu_order ID',
>> 'id' => $post->ID,
>> 'itemtag' => 'dl',
>> 'icontag' => 'dt',
>> 'captiontag' => 'dd',
>> 'columns' => 3,
>> 'size' => 'thumbnail',
>> 'include' => '',
>> 'exclude' => ''
>> ), $attr));
>>
>>
>>
>> if ( !empty($include) ) {
>>
>>
>> ^^ its defined as empty to begin with so its not even looking for the
>> attachments so auto-quit
>>
>>
>>
>>
>>
>>
>> ----- Original Message -----
>> From: <michael at mfields.org>
>> To: <wp-testers at lists.automattic.com>
>> Sent: Thursday, December 23, 2010 9:57 PM
>> Subject: Re: [wp-testers] gallery
>>
>>
>>> It's working for me. Perhaps it is a ripple effect due to the errors you
>>> experienced updating to beta. I've been using this plugin for the
>>> longest
>>> time and it has yet to fail (knock on wood).
>>>
>>> http://wordpress.org/extend/plugins/wordpress-beta-tester/
>>>
>>> If you still have issues, the gallery_shortcode() function is defined
>>> around line 758 of /wp-includes/media.php You can probably start dumping
>>> vars there.
>>>
>>> Best wishes,
>>> -Mike
>>>
>>>> Gallery Shortcode doesn't seem to be working on my sites anymore.
>>>>
>>>> [gallery orderby="rand"]
>>>>
>>>> Disabled all plugins and it's still not showing up
>>>>
>>>>
>>>> Anything you know of in the core code I can put in to test where the
>>>> content is disappearing or not showing up?
>>>>
>>>>
>>>> _______________________________________________
>>>> wp-testers mailing list
>>>> wp-testers at lists.automattic.com
>>>> http://lists.automattic.com/mailman/listinfo/wp-testers
>>>>
>>>
>>>
>>> _______________________________________________
>>> wp-testers mailing list
>>> wp-testers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-testers
>>>
>>
>>
>> _______________________________________________
>> wp-testers mailing list
>> wp-testers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-testers
>>
>
>
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>
More information about the wp-testers
mailing list