Lightbox Plus Colorbox
Dynamic post ID (3 posts)

  1. abozabra
    Posted 2 years ago #

    Hi Guys,

    we have a gallery with 20 posts(image plus some info below) on each gallery page. I am trying to use the lightbox plus so when people click on a text (quick view) below the image, it brings out the a larger images plus some content text) form it's original post.

    this what I am using to bring out the post id

    <a class="lbp-inline-link-1-<?php global $post; echo $post->ID; ?>" href="#">Quick View</a>
    <div style="display:none">
        <div id="lbp-inline-href-1-<?php global $post; echo $post->ID; ?>" style="padding: 10px;background: #fff">
            <a href="<?php the_permalink() ?>"><img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo get_post_meta($post->ID, "mainimage", $single = true); ?>&h=262&w=250&zc=1" width="262" height="250" /></a>

    It translate to this

    Quick View

    My question, how to male the class and the id of lightbox plus to be just the post ID number.

    Thank You



  2. abozabra
    Posted 2 years ago #

    translate to this.. Sorry:

    <a class="lbp-inline-link-1489" href="#">Quick View</a>

  3. abozabra
    Posted 2 years ago #

    <a class="lbp-inline-link-1-489" href="#">Inline HTML Link Name</a>

    Sorry :)

    Any Idea Will be much Appreciated

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Lightbox Plus Colorbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic