• 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>
        </div>
    </div>

    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

    Sam

    https://www.ads-software.com/extend/plugins/lightbox-plus/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter abozabra

    (@abozabra)

    translate to this.. Sorry:

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

    Thread Starter abozabra

    (@abozabra)

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

    Sorry ??

    Any Idea Will be much Appreciated

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dynamic post ID’ is closed to new replies.