Post title displayed twice

jdab

Madly Diligent
Joined
Aug 29, 2010
Messages
9,642
Reaction score
1
FP$
21
For some reason on the home page the post title displays twice, anyone know why?
Z9h7z.webp
 
I would need to see a live copy or something like that. It's probably something simple like the post title being echoed twice 😉
 
Okay, so from what I see in the source:
<h1 class="page-title">Test post</h1>

and then

<h2 class="blog-title"><a href="http://www.BarzRusTV.co.uk/?p=7">Test post</a></h2>

So basically it looks like whatever you're rendering to load the posts(may that be a file or just some php in the index) has a variable echoing the "page-title" whatever that may be, as well as the blog title.

Again, without a viewing of the php coding I have no way to know.
 
This is the Main Index Template.

Code:
<?php 
get_header(); ?>

		
		<?php $page_for_posts = get_option('page_for_posts'); ?>
		<div class="bread-crumbs"><?php echo of_get_option('bread_crumb'); ?> <a href="<?php echo site_url(); ?>"><?php _e('Home','progressionstudios'); ?></a> &rsaquo; <?php echo get_the_title($page_for_posts); ?></div>
		
		

		
		<div class="content-container">
			
			<div class="<?php if(of_get_option('blog_sidebar', 'yes') == 'yes'): ?>sidebar-container<?php else: ?>content-container<?php endif; ?> container-<?php echo of_get_option('sidebar', 'right'); ?>">
				
			<div class="page-content <?php if(of_get_option('blog_sidebar', 'yes') == 'yes'): ?>content-sidebar<?php if(of_get_option('sidebar', 'right') != 'right') echo '-'.of_get_option('sidebar', 'right');  //if statement needed to avoid css layout issues ?><?php endif; ?>">
				
				
				<?php
				if($post->post_parent) {
					$children = wp_list_pages('sort_column=menu_order&title_li=&child_of=' . $post->post_parent . '&depth=1&echo=0');
				}
				else {
					$children = wp_list_pages('sort_column=menu_order&title_li=&child_of=' . $post->ID . '&depth=1&echo=0');
				}

				if ($children) { ?>
				
				<ul class="sub-pagination">
					<?php if($post->post_parent): ?>
					<li><a href='<?php echo get_permalink($post->post_parent); ?>'><?php echo get_the_title($post->post_parent); ?></a></li>
					<?php else: ?>
					<li class="current_page_item"><a href='<?php echo get_permalink($post->ID); ?>'><?php echo get_the_title($post->ID); ?></a></li>
					<?php endif; ?>

					<?php echo $children; ?>
				</ul>
				<?php } else { ?>

				<?php } ?>
				
				<h1 class="page-title"><?php echo get_the_title($page_for_posts); ?></h1>
				<?php
				if ( 'page' == get_option('show_on_front') && get_option('page_for_posts') && is_home() ) : the_post();
					$page_for_posts_id = get_option('page_for_posts');
					setup_postdata(get_page($page_for_posts_id));
				?>
				<div class="page-description"><?php the_content(); ?></div>
				<?php
					rewind_posts();
				endif;
				?>
				
				
			
				<?php
			
					while (have_posts()) : the_post();
					
						$postID = get_the_ID();
				?>
				
				
				<div <?php post_class('blog-post'); ?> id="post-<?php the_ID(); ?>">
					<h2 class="blog-title"><a href="<?php echo the_permalink(); ?>"><?php the_title(); ?></a></h2>
					
					
					
					
					<?php if(of_get_option('blog_sidebar', 'yes') == 'yes'): ?>
					
					<?php
						if(get_post_meta($post->ID, 'pyre_video_embed_link', true)):
					?>
						<div class="blog-featured-image">
							
							<?php
							$values = get_post_custom_values('pyre_video_embed_link');
							$pattern = "/height=\"[0-9]*\"/";
							$values = preg_replace($pattern, "height='354'", $values);
							$pattern = "/width=\"[0-9]*\"/";
							$values = preg_replace($pattern, "width='630'", $values);
							$shortcode_output = do_shortcode($values[0]);
							print $shortcode_output;										
							?>
						</div>
					<?php
						elseif(has_post_thumbnail()):
						
							$thumbnail_2 = wp_get_attachment_image_src ( get_post_thumbnail_id($post->ID),'blog-image');					
					?>
						<div class="blog-featured-image"><a href="<?php the_permalink(); ?>"><img src="<?php echo $thumbnail_2[0]; ?>" /></a></div>
					<?php
						endif;
					?>
					
					<?php endif; ?>
					
					
					
					<?php if(of_get_option('blog_sidebar', 'no') == 'no'): ?>
					<?php
						if(get_post_meta($post->ID, 'pyre_video_embed_link', true)):
					?>
						<div class="blog-featured-image">
							
							<?php
							$values = get_post_custom_values('pyre_video_embed_link');
							$pattern = "/height=\"[0-9]*\"/";
							$values = preg_replace($pattern, "height='354'", $values);
							$pattern = "/width=\"[0-9]*\"/";
							$values = preg_replace($pattern, "width='900'", $values);
							$shortcode_output = do_shortcode($values[0]);
							print $shortcode_output;										
							?>
						</div>
					<?php
						elseif(has_post_thumbnail()):
						
							$thumbnail_2 = wp_get_attachment_image_src ( get_post_thumbnail_id($post->ID),'portfolio-one');					
					?>
						<div class="blog-featured-image"><a href="<?php the_permalink(); ?>"><img src="<?php echo $thumbnail_2[0]; ?>" /></a></div>
					<?php
						endif;
					?>
					
					<?php endif; ?>
					
					
					
					<div class="blog-details"><?php _e('by','progressionstudios'); ?> <?php the_author(); ?> <?php _e('on','progressionstudios'); ?> <?php the_time('F d, Y'); ?> <?php _e('in','progressionstudios'); ?> <?php the_category(', '); ?>  <?php _e('with','progressionstudios'); ?> <?php comments_popup_link( 'No Comments', 'One Comment', '% Comments' ); ?></div>
					
					<?php the_content('',FALSE,''); ?>

					<?php if(has_more()) { ?>
						<p><a href="<?php the_permalink();?>" class="button"><?php echo of_get_option('blog_button', 'Read more &rsaquo;'); ?></a></p>
					<?php } ?>
					
					<hr>
					
					<p class="blog-tags">
						
						
							<?php the_tags(__( '<strong>Tags</strong>: ', 'progressionstudios' ), ', ', '<br />'); ?>
						
					</p><!-- close .portfolio-tags -->
					
					<div class="social-networking-portfolio">
						<?php if(of_get_option('googeplus_icon', 'yes') == 'yes'): ?>
						<div class="google-plus">
							<!-- Place this tag where you want the +1 button to render -->
							<g:plusone size="medium" href="<?php the_permalink(); ?>"></g:plusone>
							<!-- Place this render call where appropriate -->
							<script type="text/javascript">
							  (function() {
							    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
							    po.src = 'https://apis.google.com/js/plusone.js';
							    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
							  })();
							</script>
						</div>
						<?php endif; ?>
						
						<?php if(of_get_option('twitter_icon_button', 'yes') == 'yes'): ?>
						<div class="twitter-button"><a href="https://twitter.com/share" data-url="<?php the_permalink(); ?>" data-text="Check out this site" class="twitter-share-button" target="_blank">Share on Twitter</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
						<?php endif; ?>
						
						<?php if(of_get_option('facebook_icon_button', 'yes') == 'yes'): ?>
						<div><a name="fb_share" type="button_count"  share_url="<?php the_permalink(); ?>" target="_blank">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></div>
						<?php endif; ?>
						
						<?php if(of_get_option('facebook_like_button', 'yes') == 'yes'): ?>
						<div><iframe src="http://www.facebook.com/plugins/like.php?href=<?php the_permalink(); ?>&amp;layout=button_count&amp;show_faces=true&amp;width=90&amp;action=like&amp;colorscheme=light&amp;height=23" scrolling="no" allowtransparency="true" frameborder="0" style="border:none; overflow:hidden; width:85px; height:23px; background:transparent; margin-right:-15px;"></iframe></div>
						<?php endif; ?>
					</div><!-- close .social-networking-portfolio -->
					
					
					<div class="clearfix"></div>
					<hr>
					
				</div><!-- close .blog-post -->
				
				
				<?php
					endwhile;
				?>
								
				

				
			
			</div><!-- close .page-content -->
			
			
			<?php if(of_get_option('blog_sidebar', 'yes') == 'yes'): ?>
			<?php get_sidebar(); ?>
			<?php endif; ?>
			
			
			<div class="clearfix"></div>
			
		</div><!-- close .sidebar-container -->
			
			
		</div><!-- close .content-container -->
		
		
		
		
		<div class="content-container-base-pagination">						
		
			<div class="left-pagination"><?php 
				//get the current page number in $paged
				$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; 
				$totalPages = $wp_query->max_num_pages;
				if($totalPages>1):
			?>
				<?php _e('Page','progressionstudios'); ?> <?php echo $paged; ?> <?php _e('of','progressionstudios'); ?> <?php echo $totalPages; ?>
			<?php endif; ?>
			</div>
			<div class="right-pagination"></div>
			<div class="center-pagination"><?php kriesi_pagination($pages = '', $range = 2); ?> </div>
			<!--div class="center-pagination"><a href="#" class="selected">1</a><a href="#">2</a><a href="#">3</a><a href="#">Next &rsaquo;</a></div-->
			<div class="clearfix"></div>
			
		</div><!-- close .content-container-base or .content-container-base-pagination -->

	
<?php get_footer(); ?>
 
<h1 class="page-title"><?php echo get_the_title($page_for_posts); ?></h1>
<?php
if ( 'page' == get_option('show_on_front') && get_option('page_for_posts') && is_home() ) : the_post();
$page_for_posts_id = get_option('page_for_posts');
setup_postdata(get_page($page_for_posts_id));
?>
<div class="page-description"><?php the_content(); ?></div>
<?php
rewind_posts();
endif;
?>



<?php

while (have_posts()) : the_post();

$postID = get_the_ID();
?>


<div <?php post_class('blog-post'); ?> id="post-<?php the_ID(); ?>">
<h2 class="blog-title"><a href="<?php echo the_permalink(); ?>"><?php the_title(); ?></a></h2>

There. It's rendering the title twice. I've not got the time to run through the code, but try working on that.
 
Code:
<?php } ?>
            
            <h1 class="page-title"><?php echo get_the_title($page_for_posts); ?></h1>
            <?php
            if ( 'page' == get_option('show_on_front') && get_option('page_for_posts') && is_home() ) : the_post();
               $page_for_posts_id = get_option('page_for_posts');
               setup_postdata(get_page($page_for_posts_id));
            ?>
            <div class="page-description"><?php the_content(); ?></div>
            <?php
               rewind_posts();
            endif;
            ?>
            
            
         
            <?php
         
               while (have_posts()) : the_post();
               
                  $postID = get_the_ID();
            ?>
            </h2>

Try that. Not 100% sure if it'll work though.
 
It's something to do with the homepage, whenever I go onto one of the categories the post title only shows once, and if you look closely it says "Home › BarzRusTV – Younganz Fusion, JNG, EZE, L1 & W.B – Cypher" just below the menus (that's the title of the post).
 
Code:
<?php
get_header(); ?>

      
      <?php $page_for_posts = get_option('page_for_posts'); ?>
      <div class="bread-crumbs"><?php echo of_get_option('bread_crumb'); ?> <a href="<?php echo site_url(); ?>"><?php _e('Home','progressionstudios'); ?></a> &rsaquo; <?php echo get_the_title($page_for_posts); ?></div>
      
      

      
      <div class="content-container">
         
         <div class="<?php if(of_get_option('blog_sidebar', 'yes') == 'yes'): ?>sidebar-container<?php else: ?>content-container<?php endif; ?> container-<?php echo of_get_option('sidebar', 'right'); ?>">
            
         <div class="page-content <?php if(of_get_option('blog_sidebar', 'yes') == 'yes'): ?>content-sidebar<?php if(of_get_option('sidebar', 'right') != 'right') echo '-'.of_get_option('sidebar', 'right');  //if statement needed to avoid css layout issues ?><?php endif; ?>">
            
            
            <?php
            if($post->post_parent) {
               $children = wp_list_pages('sort_column=menu_order&title_li=&child_of=' . $post->post_parent . '&depth=1&echo=0');
            }
            else {
               $children = wp_list_pages('sort_column=menu_order&title_li=&child_of=' . $post->ID . '&depth=1&echo=0');
            }

            if ($children) { ?>
            
            <ul class="sub-pagination">
               <?php if($post->post_parent): ?>
               <li><a href='<?php echo get_permalink($post->post_parent); ?>'><?php echo get_the_title($post->post_parent); ?></a></li>
               <?php else: ?>
               <li class="current_page_item"><a href='<?php echo get_permalink($post->ID); ?>'><?php echo get_the_title($post->ID); ?></a></li>
               <?php endif; ?>

               <?php echo $children; ?>
            </ul>
            <?php } else { ?>

            <?php } ?>
    <?php } ?>
               
                <h1 class="page-title"><?php echo get_the_title($page_for_posts); ?></h1>
                <?php
                if ( 'page' == get_option('show_on_front') && get_option('page_for_posts') && is_home() ) : the_post();
                   $page_for_posts_id = get_option('page_for_posts');
                   setup_postdata(get_page($page_for_posts_id));
                ?>
                <div class="page-description"><?php the_content(); ?></div>
                <?php
                   rewind_posts();
                endif;
                ?>
               
               
             
                <?php
             
                   while (have_posts()) : the_post();
                   
                      $postID = get_the_ID();
                ?>
                </h2>
     <?php if(of_get_option('blog_sidebar', 'yes') == 'yes'): ?>
                   
                   <?php
                      if(get_post_meta($post->ID, 'pyre_video_embed_link', true)):
                   ?>
                      <div class="blog-featured-image">
                         
                         <?php
                         $values = get_post_custom_values('pyre_video_embed_link');
                         $pattern = "/height=\"[0-9]*\"/";
                         $values = preg_replace($pattern, "height='354'", $values);
                         $pattern = "/width=\"[0-9]*\"/";
                         $values = preg_replace($pattern, "width='630'", $values);
                         $shortcode_output = do_shortcode($values[0]);
                         print $shortcode_output;                              
                         ?>
                      </div>
                   <?php
                      elseif(has_post_thumbnail()):
                      
                         $thumbnail_2 = wp_get_attachment_image_src ( get_post_thumbnail_id($post->ID),'blog-image');               
                   ?>
                      <div class="blog-featured-image"><a href="<?php the_permalink(); ?>"><img src="<?php echo $thumbnail_2[0]; ?>" /></a></div>
                   <?php
                      endif;
                   ?>
                   
                   <?php endif; ?>
                   
                   
                   
                   <?php if(of_get_option('blog_sidebar', 'no') == 'no'): ?>
                   <?php
                      if(get_post_meta($post->ID, 'pyre_video_embed_link', true)):
                   ?>
                      <div class="blog-featured-image">
                         
                         <?php
                         $values = get_post_custom_values('pyre_video_embed_link');
                         $pattern = "/height=\"[0-9]*\"/";
                         $values = preg_replace($pattern, "height='354'", $values);
                         $pattern = "/width=\"[0-9]*\"/";
                         $values = preg_replace($pattern, "width='900'", $values);
                         $shortcode_output = do_shortcode($values[0]);
                         print $shortcode_output;                              
                         ?>
                      </div>
                   <?php
                      elseif(has_post_thumbnail()):
                      
                         $thumbnail_2 = wp_get_attachment_image_src ( get_post_thumbnail_id($post->ID),'portfolio-one');               
                   ?>
                      <div class="blog-featured-image"><a href="<?php the_permalink(); ?>"><img src="<?php echo $thumbnail_2[0]; ?>" /></a></div>
                   <?php
                      endif;
                   ?>
                   
                   <?php endif; ?>
                   
                   
                   
                   <div class="blog-details"><?php _e('by','progressionstudios'); ?> <?php the_author(); ?> <?php _e('on','progressionstudios'); ?> <?php the_time('F d, Y'); ?> <?php _e('in','progressionstudios'); ?> <?php the_category(', '); ?>  <?php _e('with','progressionstudios'); ?> <?php comments_popup_link( 'No Comments', 'One Comment', '% Comments' ); ?></div>
                   
                   <?php the_content('',FALSE,''); ?>

                   <?php if(has_more()) { ?>
                      <p><a href="<?php the_permalink();?>" class="button"><?php echo of_get_option('blog_button', 'Read more &rsaquo;'); ?></a></p>
                   <?php } ?>
                   
                   <hr>
                   
                   <p class="blog-tags">
                      
                      
                         <?php the_tags(__( '<strong>Tags</strong>: ', 'progressionstudios' ), ', ', '<br />'); ?>
                      
                   </p><!-- close .portfolio-tags -->
                   
                   <div class="social-networking-portfolio">
                      <?php if(of_get_option('googeplus_icon', 'yes') == 'yes'): ?>
                      <div class="google-plus">
                         <!-- Place this tag where you want the +1 button to render -->
                         <g:plusone size="medium" href="<?php the_permalink(); ?>"></g:plusone>
                         <!-- Place this render call where appropriate -->
                         <script type="text/javascript">
                           (function() {
                             var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
                             po.src = 'https://apis.google.com/js/plusone.js';
                             var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
                           })();
                         </script>
                      </div>
                      <?php endif; ?>
                      
                      <?php if(of_get_option('twitter_icon_button', 'yes') == 'yes'): ?>
                      <div class="twitter-button"><a href="https://twitter.com/share" data-url="<?php the_permalink(); ?>" data-text="Check out this site" class="twitter-share-button" target="_blank">Share on Twitter</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
                      <?php endif; ?>
                      
                      <?php if(of_get_option('facebook_icon_button', 'yes') == 'yes'): ?>
                      <div><a name="fb_share" type="button_count"  share_url="<?php the_permalink(); ?>" target="_blank">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></div>
                      <?php endif; ?>
                      
                      <?php if(of_get_option('facebook_like_button', 'yes') == 'yes'): ?>
                      <div><iframe src="http://www.facebook.com/plugins/like.php?href=<?php the_permalink(); ?>&amp;layout=button_count&amp;show_faces=true&amp;width=90&amp;action=like&amp;colorscheme=light&amp;height=23" scrolling="no" allowtransparency="true" frameborder="0" style="border:none; overflow:hidden; width:85px; height:23px; background:transparent; margin-right:-15px;"></iframe></div>
                      <?php endif; ?>
                   </div><!-- close .social-networking-portfolio -->
                   
                   
                   <div class="clearfix"></div>
                   <hr>
                   
                </div><!-- close .blog-post -->
                
                
                <?php
                   endwhile;
                ?>
                            
                

                
             
             </div><!-- close .page-content -->
             
             
             <?php if(of_get_option('blog_sidebar', 'yes') == 'yes'): ?>
             <?php get_sidebar(); ?>
             <?php endif; ?>
             
             
             <div class="clearfix"></div>
             
          </div><!-- close .sidebar-container -->
             
             
          </div><!-- close .content-container -->
          
          
          
          
          <div class="content-container-base-pagination">                  
          
             <div class="left-pagination"><?php
                //get the current page number in $paged
                $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
                $totalPages = $wp_query->max_num_pages;
                if($totalPages>1):
             ?>
                <?php _e('Page','progressionstudios'); ?> <?php echo $paged; ?> <?php _e('of','progressionstudios'); ?> <?php echo $totalPages; ?>
             <?php endif; ?>
             </div>
             <div class="right-pagination"></div>
             <div class="center-pagination"><?php kriesi_pagination($pages = '', $range = 2); ?> </div>
             <!--div class="center-pagination"><a href="#" class="selected">1</a><a href="#">2</a><a href="#">3</a><a href="#">Next &rsaquo;</a></div-->
             <div class="clearfix"></div>
             
          </div><!-- close .content-container-base or .content-container-base-pagination -->

       
    <?php get_footer(); ?>

That's the code with the edits that might work.
 
Nathan said:
<?php
get_header(); ?>

     
      <?php $page_for_posts = get_option('page_for_posts'); ?>
      <div class="bread-crumbs"><?php echo of_get_option('bread_crumb'); ?> <a href="<?php echo site_url(); ?>"><?php _e('Home','progressionstudios'); ?></a> &rsaquo; <?php echo get_the_title($page_for_posts); ?></div>
     
     

     
      <div class="content-container">
         
         <div class="<?php if(of_get_option('blog_sidebar', 'yes') == 'yes'): ?>sidebar-container<?php else: ?>content-container<?php endif; ?> container-<?php echo of_get_option('sidebar', 'right'); ?>">
           
         <div class="page-content <?php if(of_get_option('blog_sidebar', 'yes') == 'yes'): ?>content-sidebar<?php if(of_get_option('sidebar', 'right') != 'right') echo '-'.of_get_option('sidebar', 'right');  //if statement needed to avoid css layout issues ?><?php endif; ?>">
           
           
            <?php
            if($post->post_parent) {
               $children = wp_list_pages('sort_column=menu_order&title_li=&child_of=' . $post->post_parent . '&depth=1&echo=0');
            }
            else {
               $children = wp_list_pages('sort_column=menu_order&title_li=&child_of=' . $post->ID . '&depth=1&echo=0');
            }

            if ($children) { ?>
           
            <ul class="sub-pagination">
               <?php if($post->post_parent): ?>
               <li><a href='<?php echo get_permalink($post->post_parent); ?>'><?php echo get_the_title($post->post_parent); ?></a></li>
               <?php else: ?>
               <li class="current_page_item"><a href='<?php echo get_permalink($post->ID); ?>'><?php echo get_the_title($post->ID); ?></a></li>
               <?php endif; ?>

               <?php echo $children; ?>
            </ul>
            <?php } else { ?>

            <?php } ?>
    <?php } ?>
               
                <h1 class="page-title"><?php echo get_the_title($page_for_posts); ?></h1>
                <?php
                if ( 'page' == get_option('show_on_front') && get_option('page_for_posts') && is_home() ) : the_post();
                   $page_for_posts_id = get_option('page_for_posts');
                   setup_postdata(get_page($page_for_posts_id));
                ?>
                <div class="page-description"><?php the_content(); ?></div>
                <?php
                   rewind_posts();
                endif;
                ?>
               
               
             
                <?php
             
                   while (have_posts()) : the_post();
                   
                      $postID = get_the_ID();
                ?>
                </h2>
     <?php if(of_get_option('blog_sidebar', 'yes') == 'yes'): ?>
                   
                   <?php
                      if(get_post_meta($post->ID, 'pyre_video_embed_link', true)):
                   ?>
                      <div class="blog-featured-image">
                         
                         <?php
                         $values = get_post_custom_values('pyre_video_embed_link');
                         $pattern = "/height=\"[0-9]*\"/";
                         $values = preg_replace($pattern, "height='354'", $values);
                         $pattern = "/width=\"[0-9]*\"/";
                         $values = preg_replace($pattern, "width='630'", $values);
                         $shortcode_output = do_shortcode($values[0]);
                         print $shortcode_output;                             
                         ?>
                      </div>
                   <?php
                      elseif(has_post_thumbnail()):
                     
                         $thumbnail_2 = wp_get_attachment_image_src ( get_post_thumbnail_id($post->ID),'blog-image');               
                   ?>
                      <div class="blog-featured-image"><a href="<?php the_permalink(); ?>"><img src="<?php echo $thumbnail_2[0]; ?>" /></a></div>
                   <?php
                      endif;
                   ?>
                   
                   <?php endif; ?>
                   
                   
                   
                   <?php if(of_get_option('blog_sidebar', 'no') == 'no'): ?>
                   <?php
                      if(get_post_meta($post->ID, 'pyre_video_embed_link', true)):
                   ?>
                      <div class="blog-featured-image">
                         
                         <?php
                         $values = get_post_custom_values('pyre_video_embed_link');
                         $pattern = "/height=\"[0-9]*\"/";
                         $values = preg_replace($pattern, "height='354'", $values);
                         $pattern = "/width=\"[0-9]*\"/";
                         $values = preg_replace($pattern, "width='900'", $values);
                         $shortcode_output = do_shortcode($values[0]);
                         print $shortcode_output;                             
                         ?>
                      </div>
                   <?php
                      elseif(has_post_thumbnail()):
                     
                         $thumbnail_2 = wp_get_attachment_image_src ( get_post_thumbnail_id($post->ID),'portfolio-one');               
                   ?>
                      <div class="blog-featured-image"><a href="<?php the_permalink(); ?>"><img src="<?php echo $thumbnail_2[0]; ?>" /></a></div>
                   <?php
                      endif;
                   ?>
                   
                   <?php endif; ?>
                   
                   
                   
                   <div class="blog-details"><?php _e('by','progressionstudios'); ?> <?php the_author(); ?> <?php _e('on','progressionstudios'); ?> <?php the_time('F d, Y'); ?> <?php _e('in','progressionstudios'); ?> <?php the_category(', '); ?>  <?php _e('with','progressionstudios'); ?> <?php comments_popup_link( 'No Comments', 'One Comment', '% Comments' ); ?></div>
                   
                   <?php the_content('',FALSE,''); ?>

                   <?php if(has_more()) { ?>
                      <p><a href="<?php the_permalink();?>" class="button"><?php echo of_get_option('blog_button', 'Read more &rsaquo;'); ?></a></p>
                   <?php } ?>
                   
                   <hr>
                   
                   <p class="blog-tags">
                     
                     
                         <?php the_tags(__( '<strong>Tags</strong>: ', 'progressionstudios' ), ', ', '<br />'); ?>
                     
                   </p><!-- close .portfolio-tags -->
                   
                   <div class="social-networking-portfolio">
                      <?php if(of_get_option('googeplus_icon', 'yes') == 'yes'): ?>
                      <div class="google-plus">
                         <!-- Place this tag where you want the +1 button to render -->
                         <g😛lusone size="medium" href="<?php the_permalink(); ?>"></g😛lusone>
                         <!-- Place this render call where appropriate -->
                         <script type="text/javascript">
                           (function() {
                             var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
                             po.src = 'https://apis.google.com/js/plusone.js';
                             var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
                           })();
                         </script>
                      </div>
                      <?php endif; ?>
                     
                      <?php if(of_get_option('twitter_icon_button', 'yes') == 'yes'): ?>
                      <div class="twitter-button"><a href="https://twitter.com/share" data-url="<?php the_permalink(); ?>" data-text="Check out this site" class="twitter-share-button" target="_blank">Share on Twitter</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div>
                      <?php endif; ?>
                     
                      <?php if(of_get_option('facebook_icon_button', 'yes') == 'yes'): ?>
                      <div><a name="fb_share" type="button_count"  share_url="<?php the_permalink(); ?>" target="_blank">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></div>
                      <?php endif; ?>
                     
                      <?php if(of_get_option('facebook_like_button', 'yes') == 'yes'): ?>
                      <div><iframe src="http://www.facebook.com/plugins/like.php?href=<?php the_permalink(); ?>&amp;layout=button_count&amp;show_faces=true&amp;width=90&amp;action=like&amp;colorscheme=light&amp;height=23" scrolling="no" allowtransparency="true" frameborder="0" style="border:none; overflow:hidden; width:85px; height:23px; background:transparent; margin-right:-15px;"></iframe></div>
                      <?php endif; ?>
                   </div><!-- close .social-networking-portfolio -->
                   
                   
                   <div class="clearfix"></div>
                   <hr>
                   
                </div><!-- close .blog-post -->
               
               
                <?php
                   endwhile;
                ?>
                           
               

               
             
             </div><!-- close .page-content -->
             
             
             <?php if(of_get_option('blog_sidebar', 'yes') == 'yes'): ?>
             <?php get_sidebar(); ?>
             <?php endif; ?>
             
             
             <div class="clearfix"></div>
             
          </div><!-- close .sidebar-container -->
             
             
          </div><!-- close .content-container -->
         
         
         
         
          <div class="content-container-base-pagination">                 
         
             <div class="left-pagination"><?php
                //get the current page number in $paged
                $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
                $totalPages = $wp_query->max_num_pages;
                if($totalPages>1):
             ?>
                <?php _e('Page','progressionstudios'); ?> <?php echo $paged; ?> <?php _e('of','progressionstudios'); ?> <?php echo $totalPages; ?>
             <?php endif; ?>
             </div>
             <div class="right-pagination"></div>
             <div class="center-pagination"><?php kriesi_pagination($pages = '', $range = 2); ?> </div>
             <!--div class="center-pagination"><a href="#" class="selected">1</a><a href="#">2</a><a href="#">3</a><a href="#">Next &rsaquo;</a></div-->
             <div class="clearfix"></div>
             
          </div><!-- close .content-container-base or .content-container-base-pagination -->

       
    <?php get_footer(); ?>
That didn't work 🙁
 
Back
Top Bottom