Manually slb_activate on custom post type
-
Hello there,
I’m trying to manually activate lightbox inside image links on a custom post type i created.
Here is my example code which i’m testing but no luck. it returns the image and when i click it opens the image itself.
“Inside” is working which means it seems slb_activate is present on this template.
$content =
"<a href=URL-IMG><img src=URL-IMG /></a>";
if ( function_exists(‘slb_activate’) ) {
$content = slb_activate($content);
echo “inside”;
}
echo $content;What i’m doing wrong?
many thanks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Manually slb_activate on custom post type’ is closed to new replies.