Sidmetal98
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Fixing WordPress
In reply to: How to remove either one of the repeated titles from a post?This is the other one I found, file is named as “content-single”
<?php global $post; $date_format = get_option('date_format'); $author_id=$post->post_author; ?> <div <?php post_class(); ?>> <h2 class="entry-title"> <a title="<?php printf( esc_attr__( 'Permalink to %s', 'smooththemes' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark" href="<?php echo $link; ?>"><?php the_title(); ?></a> </h2> <?php // show thumbnails if(st_get_setting('s_show_featured_img','y')!='n'){ $thumb = st_theme_post_thumbnail($post->ID,array('force_video_size'=> false), false); ?> <?php if($thumb!=''){ ?> <div class="entry-thumbnail"> <?php echo (is_sticky()) ? '<span class="sticky-icon"><i class="iconentypo-pin"></i></span>' : ''; ?> <?php echo $thumb; ?> </div> <?php } } ?> <?php // show post meta if(st_get_setting('s_show_post_meta','y')!='n'){ ?> <div class="entry-meta"> <span class="meta-item blog-date"><i class="iconentypo-calendar"></i><?php printf(__('On <span class="txt">%s</span>','smooththemes'),get_the_time($date_format)); ?></span> <span class="meta-item blog-author"> <i class="iconentypo-user"></i> <?php printf('By <a href="%1$s">%2$s</a>',esc_url( get_author_posts_url( get_the_author_meta( 'ID', $author_id ) ) ), get_the_author_meta( 'display_name', $author_id )); ?> </span> <span class="meta-item blog-category"> <i class="iconentypo-tag"></i> <?php printf(__('In %s', 'smooththemes'),get_the_category_list(', '));?> </span> <span class="pull-right meta-item post-comments"> <i class="iconentypo-comment"></i> <a title="<?php printf( esc_attr__( 'Permalink to %s', 'smooththemes' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark" href="<?php echo get_comments_link(); ?>"> <?php comments_number(__('0 Comment','smooththemes'),__('1 Comment','smooththemes'),__('% Comments','smooththemes') ); ?> </a> </span> </div> <?php } ?> <div class="entry-content"> <?php // show the content if(function_exists('st_the_builder_content')){ if(!st_the_builder_content($post->ID)){ the_content(); } }else{ the_content(); } ?> </div> <?php // pagination for single $args = array( 'before' => '<p class="single-pagination">' . __('Pages:','smooththemes'), 'after' => '</p>', 'link_before' => '', 'link_after' => '', 'next_or_number' => 'number', 'nextpagelink' => __('Next page','smooththemes'), 'previouspagelink' => __('Previous page','smooththemes'), 'pagelink' => '%', 'echo' => 1 ); wp_link_pages( $args ); if(st_get_setting('s_show_post_tag','y')!='n'){ the_tags('<div class="entry-tags"> '.__('Tags: '),', ','</div>'); } if(st_get_setting("s_show_author_desc",'y') != 'n'){ st_theme_author_template($author_id); }; if(st_get_setting("s_show_comments",'y') != 'n'){ ?> <div id="comments"> <?php comments_template('', true ); ?> </div><!-- /#comments--> <?php } ?> </div><!-- /. end post_class -->
Forum: Fixing WordPress
In reply to: How to remove either one of the repeated titles from a post?I guess this is it –
It is named as “single-post”
<?php include('header.php'); global $post; the_post(); ?> <?php get_template_part('layout','title'); ?> <div class="main-wrapper"> <div class="container main-wrapper-outer"> <div class="main-wrapper-inner"> <div class="row"> <div class="col-lg-4 col-sm-4 col-md-4 column sidebar sidebar-right"> <div class="wrap-sidebar"> <?php $sidebar ='sidebar_default'; if(is_singular() || is_page()){ global $post; $page_options = st_get_post_options($post->ID); $sidebar = ($page_options['right_sidebar']!='') ? $page_options['right_sidebar'] : $sidebar ; } dynamic_sidebar($sidebar); ?> </div> </div> <div class="col-lg-8 col-sm-8 col-md-8 column main-content"> <div class="wrap-primary"> <?php get_template_part('content','single'); ?> </div> </div> </div> </div> </div> </div> <?php include('footer.php') ?>
Viewing 2 replies - 1 through 2 (of 2 total)