Custom group has different id
-
Hey there,
I am trying to create a custom group and know I’m so close, but I’m missing something. I have a page with featured images and am using slb_activate to launch the lightbox, which is working great. I assigned a custom group which kind of works and kind of doesn’t. The group id I assign is getting applied, but each image has a different number in front of the group id so the images don’t function as a group.
For example, one image has 144_profile and the other has 142_profile. The last part _profile is the same, but the number in front is different.
My code looks like:
$id = get_post_thumbnail_id( $post->ID ); $url = wp_get_attachment_url( $id ); $content = "<a href='".$url."' class='featured'>".get_the_post_thumbnail($post->ID, 'thumbnail')."</a>"; if ( function_exists('slb_activate') ) { $content = slb_activate($content, "profile"); } echo $content;
Which outputs:
https://i.cubeupload.com/oLHMzG.pngAnyone run into this or know of a possible fix?
Thanks,
Josh
- The topic ‘Custom group has different id’ is closed to new replies.