Subheading show up in archive page
-
Hey, I tried to let the subheading show up in archive page,
websitepage where i would like it to show up.
It says it should automatically show up, but i cant figure out why it doesn’t in my theme.
I tried to understand and apply all the documentation, but my knowledge of php is limited.
Any help would be greatly appreciated.this is the coding of the archive page:
<?php get_header(); ?> <?php // Check and get Sidebar Class $sidebar = get_option(THEME_SHORT_NAME.'_search_archive_sidebar','no-sidebar'); $sidebar_array = gdl_get_sidebar_size( $sidebar ); ?> <div class="page-wrapper archive-page <?php echo $sidebar_array['sidebar_class']; ?>"> <?php $left_sidebar = get_option(THEME_SHORT_NAME.'_search_archive_left_sidebar'); $right_sidebar = get_option(THEME_SHORT_NAME.'_search_archive_right_sidebar'); // print title if( is_category() || is_tax('portfolio-category') ){ $title = __('Category','gdl_front_end'); }else if( is_tag() || is_tax('portfolio-tag') ){ $title = __('Tag','gdl_front_end'); }else if( is_day() ){ $title = __('Day','gdl_front_end'); }else if( is_month() ){ $title = __('Month','gdl_front_end'); }else if( is_year() ){ $title = __('Year','gdl_front_end'); }else if( is_author() ){ $title = __('By','gdl_front_end'); } if(is_category() || is_tag() || is_tax('portfolio-category') || is_tax('portfolio-tag') ){ $caption = single_cat_title('', false); }else if( is_day() ){ $caption = get_the_date('F j, Y'); }else if( is_month() ){ $caption = get_the_date('F Y'); }else if( is_year() ){ $caption = get_the_date('Y'); }else if( is_author() ){ $author_id = get_query_var('author'); $author = get_user_by('id', $author_id); $caption = $author->display_name; } print_page_header($title, $caption); echo '<div class="row gdl-page-row-wrapper">'; echo '<div class="gdl-page-left mb0 ' . $sidebar_array['page_left_class'] . '">'; echo '<div class="row">'; echo '<div class="gdl-page-item mb0 pb20 ' . $sidebar_array['page_item_class'] . '">'; if( !is_tax('portfolio-category') && !is_tax('portfolio-tag') ){ // blog archive $item_type = get_option(THEME_SHORT_NAME.'_search_archive_item_size', '1/1 Full Thumbnail'); $num_excerpt = get_option(THEME_SHORT_NAME.'_search_archive_num_excerpt', 285); $full_content = get_option(THEME_SHORT_NAME.'_search_archive_full_blog_content', 'No'); global $blog_div_size_num_class; $item_class = $blog_div_size_num_class[$item_type]['class']; $item_size = $blog_div_size_num_class[$item_type][$sidebar_type]; echo '<div id="blog-item-holder" class="blog-item-holder">'; if( $item_type == '1/4 Blog Widget' || $item_type == '1/3 Blog Widget' || $item_type == '1/2 Blog Widget' || $item_type == '1/1 Blog Widget'){ print_blog_widget($item_class, $item_size, $num_excerpt, $full_content, $item_type); }else if( $item_type == '1/1 Medium Thumbnail' ){ print_blog_medium($item_class, $item_size, $num_excerpt, $full_content); }else if( $item_type == '1/1 Full Thumbnail' ){ print_blog_full($item_class, $item_size, $num_excerpt, $full_content); } echo '</div>'; // blog-item-holder }else{ // portfolio archive $port_size = get_option(THEME_SHORT_NAME.'_portfolio_archive_size' ,'1/4'); $show_title = (get_option(THEME_SHORT_NAME.'_portfolio_archive_show_title' ,'Yes') == "Yes")? true: false; $show_tag = (get_option(THEME_SHORT_NAME.'_portfolio_archive_show_tags' ,'Yes') == "Yes")? true: false; print_normal_portfolio($port_size, $show_title, $show_tag); } echo '<div class="clear"></div>'; pagination(); echo "</div>"; // end of gdl-page-item get_sidebar('left'); echo '<div class="clear"></div>'; echo "</div>"; // row echo "</div>"; // gdl-page-left get_sidebar('right'); echo '<div class="clear"></div>'; echo "</div>"; // row ?> <div class="clear"></div> </div> <!-- page wrapper --> <?php get_footer(); ?>
https://www.ads-software.com/plugins/yet-another-stars-rating/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Subheading show up in archive page’ is closed to new replies.