Title: [Plugin: Advanced Access Manager] Problem to exclude in gallery shortcode
Last modified: August 20, 2016

---

# [Plugin: Advanced Access Manager] Problem to exclude in gallery shortcode

 *  Resolved [carlosjunod](https://wordpress.org/support/users/carlosjunod/)
 * (@carlosjunod)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-advanced-access-manager-problem-to-exclude-in-gallery-shortcode/)
 * I need to exclude the post thumbail in the gallery, it works with my coded, but
   when I activate the plugin, it doesn’t allow me to exclude the post thumbail
   
   this is my code:
 *     ```
       <?php  $id = get_post_thumbnail_id(get_the_ID()); // gets the post thumbnail ID ?>						
   
       <?php echo do_shortcode('[gallery exclude='.$id.' link="file" itemtag="ul" icontag="li" columns="4" size="galeria"]'); ?>
       ```
   
 * size “galeria” is defined in the function.php like that:
    `add_image_size('galeria',
   60, 60, true);`
 * [http://wordpress.org/extend/plugins/advanced-access-manager/](http://wordpress.org/extend/plugins/advanced-access-manager/)
 * p.s. sorry my english it’s not good, greetings from Chile 🙂

Viewing 1 replies (of 1 total)

 *  [vasyl_m](https://wordpress.org/support/users/vasyl_m/)
 * (@vasyl_m)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-advanced-access-manager-problem-to-exclude-in-gallery-shortcode/#post-2364872)
 * Hi Carlosjunod,
    I’m guessing this is the problem of filters. Actually filter’s
   priorities. My plugin executes all filters on priority 999. Probably it overwrite
   galeria’s result. Now I do not have a clear solution for this. I have to investigate
   how filters and actions are working in core.
 *  Thanks for this message.
    I definitely will take this in consideration. Regards,
   Vasyl

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Advanced Access Manager] Problem to exclude in gallery shortcode’
is closed to new replies.

 * ![](https://ps.w.org/advanced-access-manager/assets/icon-256x256.png?rev=3447421)
 * [Advanced Access Manager – Access Governance for WordPress](https://wordpress.org/plugins/advanced-access-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-access-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-access-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-access-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-access-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [vasyl_m](https://wordpress.org/support/users/vasyl_m/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-advanced-access-manager-problem-to-exclude-in-gallery-shortcode/#post-2364872)
 * Status: resolved