I have moved an existing WP site to unite gallery (paid). It's working really well for new posts. However older posts need to be updated by hand, which is a pain.
Two features would help:
Allow a unite gallery to act as the default gallery. (e.g. shortcode "[gallery]"). This would also mean the standard UI to add galleries would add a default unite gallery, which is, I think, what many people would want.
The WP internal gallery will handle missing attachment ids by displaying all attachments on a post. E.g. shortcode "[gallery]" works fine with the standard gallery, but unite requires "[gallery ids=....]". Please emulate the built-in behavior.
Many thanks for a great plugin. The mobile behavior is fantastic!
To clarify, the second request: From inside a post, all uploaded media have post_parent set to the post. The internal gallery, when invoked as "[gallery]", just shows these media. On the other hand, unite gallery will give an error.
Here's the patch I'm using. to show what I mean. I'm not familiar with the wordpress api, so I just went with the most straightforward solution as I didn't see a quick way to get just the children ids.
I have moved an existing WP site to unite gallery (paid). It's working really well for new posts. However older posts need to be updated by hand, which is a pain.
Two features would help:
Many thanks for a great plugin. The mobile behavior is fantastic!
Hi, Thanks for the quick response!
To clarify, the second request: From inside a post, all uploaded media have post_parent set to the post. The internal gallery, when invoked as "[gallery]", just shows these media. On the other hand, unite gallery will give an error.
Here's the patch I'm using. to show what I mean. I'm not familiar with the wordpress api, so I just went with the most straightforward solution as I didn't see a quick way to get just the children ids.
--- unitegallery/inc_php/framework/provider/provider_main_file.php 2016-11-27 19:53:14.890318573 -0600 +++ unitegallery-orig/inc_php/framework/provider/provider_main_file.php 2016-11-23 18:47:11.202178483 -0600 @@ -45,12 +45,6 @@ return $output; $ids = UniteFunctionsUG::getVal($atts, "ids"); - - // Handle empty ids case the same as gallery. - if(empty($ids)) { - $attachments = get_children( array( 'post_parent' => intval( get_post()->ID ), 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $atts['order'], 'orderby' => $atts['orderby'] ) ); - $ids = implode(',',array_keys($attachments)); - } if(empty($ids)) return $output;