Support » Plugin: Advanced Access Manager - Restricted Content, Users & Roles, Enhanced Security and More » [Plugin: Advanced Access Manager] Problem to exclude in gallery shortcode

  • Resolved carlosjunod

    (@carlosjunod)


    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/

    p.s. sorry my english it’s not good, greetings from Chile 🙂

Viewing 1 replies (of 1 total)
  • 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.