Support » Plugins and Hacks » Dynamic post ID

Dynamic post ID

  • 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



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