Adding ?TB_iframe to a php echo call?
-
I’ve created a custom loop to pull up sub-sites of a travel destination for an educational travel website I’m working on. I’d like to use Auto-Thickbox to pull each sub-site (which are all their own separate custom Post) into an iframe with custom dimensions (1000×500).
Is this possible?
If so, here is my loop. I am unsure of how to add the ?TB_iframe to the end of the get_permalink php:
if ( get_post_meta($post->ID, 'dest_location_ca', true) ) { $args = array( 'post_type' => 'sites', 'meta_key' => "site_destination", 'meta_value'=> "California", 'orderby'=> 'title', 'order' => 'ASC', 'posts_per_page' => 100, ); $sites = new WP_Query( $args ); if ( $sites->have_posts() ) : echo "<h3>California</h3>"; while ( $sites->have_posts() ) : $sites->the_post(); echo '<ul id="snapshots_list">'; echo "<li>"; echo "<a href=\"" . get_permalink() ) ."\">"; if (has_post_thumbnail()) { the_post_thumbnail('thumbnail', array('class' => 'thumb_destination')); } echo "<br />"; the_title(); echo "</li>"; echo '</ul>'; endwhile; endif; }Unfortunately, I cannot provide a link to my actual site in progress because we have local test servers that are not accessible outside of the company building. Apologies for that!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Adding ?TB_iframe to a php echo call?’ is closed to new replies.