• Hi,

    In my gallery page, when I clicked the picture in pic1, it shows the featured picture.
    But I want an external link when I clicked the picture.

    someone help?

    (1)
    https://i.imgur.com/IdNyRUE.png
    (2)
    https://i.imgur.com/Aivuue2.png

    I think this is the code

    <?php
    /*
    Template Name: Gallery Page - 3 column with sidebar
    */
    
    get_header(); ?>
    
    <!--Main begin-->
    <div id="main" class="round_8 clearfix">
    
    	<!-- Breadcrumb begin -->
    	<div class="pad-left-10">
    	<?php if (function_exists('pkb_breadcrumbs')) pkb_breadcrumbs(); ?>
        </div>
    	<!-- Breadcrumb end -->
    
    	<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    
    	<!-- Page title begin -->
    	<div class="page_title round_6">
    		<h1 class="replace">
    			<?php if ( is_front_page() ) { ?>
    				<?php the_title(); ?>
    			<?php } else { ?>
    				<?php the_title(); ?>
    			<?php } ?>
    		</h1>
    	</div>
    	<!-- Page title end -->
    
    	<div id="content-clear" class="left alpha omega">
    
    		<!-- Filter Bar begin -->
    		<div id="filter-bar-container" class="pad-left-10">
    			<ul id="filter-bar" class="clearfix" data-option-key="filter">
    				<li class="segment-1"><a class="active all" data-option-value="*" href="#"><?php _e('Hepsi', 'peekaboo'); ?></a></li>
    				<?php wp_list_categories(array('title_li' => '', 'taxonomy' => 'media-type', 'walker' => new Walker_Category_Filter())); ?>
    			</ul>
    		</div>
    		<!-- Filter Bar end -->
    
    		<?php endwhile; ?>
    
    		<?php  $wp_query = new WP_Query();
    			   $wp_query->query('post_type=gallery&posts_per_page=-1'); ?>
    
    <!-- Gallery Wrap begin -->
    
    <div id="gallery-wrapper">
    
    			<!-- Module Wrapper begin-->
    			<ul id="module-wrapper" class="module-3-col">
    
    				<?php $count = 1; ?>
    				<?php if ($wp_query->have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post();
    					  $terms = get_the_terms( get_the_ID(), 'media-type' );  ?> 
    
    				<li class="<?php foreach ($terms as $term) { echo strtolower(preg_replace('/\s+/', '-', $term->name)). ' '; } ?> col_201 module" data-id="id-<?php echo $count; ?>">
    
    					<!-- Post begin -->
    					<div  id="post-<?php the_ID(); ?>" <?php post_class('gallery_module'); ?> >	
    
    						<?php
    						if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { ?>
    						<div class="post-thumbnail">
    							<?php pkb_colorbox(get_the_ID(), 'gallery-thumbnail-m'); ?>
    						</div>
    						<?php } ?>
    
    						<h4 class="post-title"><a href="<?php the_permalink(); ?>" title="<?php printf(__('Link to %s', 'peekaboo'), get_the_title()); ?>"><?php the_title(); ?></a></h4>
    
    					</div>
    					<!-- Post end -->
    				</li>
    				<?php $count++; ?>
    				<?php endwhile; endif; ?>
    
    			</ul>
    			<!-- Module Wrapper end-->
    		<?php wp_reset_query(); ?>
    		</div>
    
    		<!-- Gallery Wrap end -->
    	</div>
    
    	<!-- Sidebar begin-->
        <div  id="sidebar" class="left">
    		<?php get_sidebar(); ?>
        </div>
    	<!-- Sidebar end-->    
    
    <?php get_footer(); ?>
  • The topic ‘Get rid of Picture Wrap’ is closed to new replies.