-
Author
-
July 3, 2015 at 06:31 #66305fabienneParticipant
Hi, my blog summary page https://www.tourismtribe.com/news-room/page/2/ (the second page) doesn’t display the extra posts but displays the same posts as the homepage.
1) how do I fix that (is it a bug?)
2) how do I get rid of the pagination??thanks
TourismTribe.com
July 3, 2015 at 20:00 #66378sharmstrModeratorI’ve been thinking about this all morning. I’ve seen this happen before, but for the life of me cant remember the fix. Can you do a search here? Its the weekend and I’m trying to get away from this darn computer for a bit (well, its a holiday weekend. I know its not for you.)
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
July 6, 2015 at 06:07 #66770fabienneParticipantEnjoy the rest of your weekend. I did a search but no luck. I’ll wait until it pops back in your mind 🙂
TourismTribe.com
July 6, 2015 at 13:54 #66815sharmstrModeratorI tried to look into this but was busy with all the topics that were open about the wp admin error. I’ll get to it very soon.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
July 6, 2015 at 20:05 #66950AbeKeymasterHello, this is a custom page or is a category page generated by WP? https://www.tourismtribe.com/news-room/
Because if it is a category page, this is the link to that category page where the pagination works correctly https://www.tourismtribe.com/category/news-room/
So you either put “.”(dot) in the Settings – Permalinks – Category base or you rename the link in header menu
Hope that helps
CheersHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.July 8, 2015 at 17:06 #67334sharmstrModeratorLooks like its been fixed. Thank you @abe.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
July 9, 2015 at 03:42 #67423fabienneParticipantHi guys,
Thanks again. The problem isn’t fixed but I now remember what i did. I am using the ‘news room’ as the blog functionality but I have limited the category to display to just those posts in the news room (i have pasted the whole blog template file below).
What would i need to alter so that i still can use the pagination properly? Also is there a way to display more than x results? Thanks
here is the bit i changed (lines 108 and 109).
COPY CODE// Start the Loop. query_posts('cat=136');
COPY CODE<?php /** * The main template file. * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * For example, it puts together the home page when no home.php file exists. * * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package WordPress * @subpackage Kleo * @author SeventhQueen <themesupport@seventhqueen.com> * @since Kleo 1.0 */ get_header(); ?> <?php //Specific class for post listing */ $blog_type = sq_option('blog_type','masonry'); $blog_type = apply_filters( 'kleo_blog_type', $blog_type ); $template_classes = $blog_type . '-listing'; if (sq_option('blog_archive_meta', 1) == 1) { $template_classes .= ' with-meta'; } else { $template_classes .= ' no-meta'; } add_filter('kleo_main_template_classes', create_function('$cls','$cls .=" posts-listing '.$template_classes.'"; return $cls;')); /*************************************************** :: Title section ***************************************************/ //title $title_arr['show_title'] = true; $page_title = kleo_title(); if ( sq_option( 'title_location', 'breadcrumb' ) == 'main' ) { $title_arr['show_title'] = false; } //breadcrumb $title_arr['show_breadcrumb'] = true; if( sq_option( 'breadcrumb_status', 1 ) == 0 ) { $title_arr['show_breadcrumb'] = false; } //extra info if ( sq_option( 'title_info', '' ) == '' ) { $show_info = FALSE; } else { $show_info = TRUE; } //If we have designated a page for latest posts like Blog page if ( get_option( 'page_for_posts' ) ) { $blogpage_id = get_option('page_for_posts'); $page_title = get_the_title( $blogpage_id ); if( get_cfield( 'title_checkbox', $blogpage_id ) == 1 ) { $title_arr['show_title'] = false; } if ( get_cfield( 'hide_info', $blogpage_id ) == 1 ) { $show_info = FALSE; } if( get_cfield( 'hide_breadcrumb', $blogpage_id ) == 1 ) { $title_arr['show_breadcrumb'] = false; } else if ( get_cfield( 'hide_breadcrumb', $blogpage_id ) === '0' ) { $title_arr['show_breadcrumb'] = true; } } $title_arr['title'] = $page_title; if ( ( isset( $title_arr['show_breadcrumb'] ) && $title_arr['show_breadcrumb'] ) || $show_info === TRUE || $title_arr['show_title'] ) { echo kleo_title_section( $title_arr ); } /* END TITLE SECTION */ ?> <?php get_template_part('page-parts/general-before-wrap');?> <?php if (kleo_has_featured_posts() ) { // Include the featured content template. get_template_part( 'featured-content' ); } ?> <?php if ( have_posts() ) : ?> <?php if (sq_option('blog_switch_layout', 0) == 1 ) : /* Blog Layout Switcher */ ?> <?php kleo_view_switch( sq_option( 'blog_enabled_layouts' ), $blog_type ); ?> <?php endif; ?> <?php if ($blog_type == 'masonry') : ?> <div class="row responsive-cols kleo-masonry per-row-<?php echo sq_option( 'blog_columns', 3 );?>"> <?php endif; ?> <?php // Start the Loop. query_posts('cat=136'); while ( have_posts() ) : the_post(); /* * Include the post format-specific template for the content. If you want to * use this in a child theme, then include a file called called content-___.php * (where ___ is the post format) and that will be used instead. */ ?> <?php if ( $blog_type != 'standard' ) : get_template_part( 'page-parts/post-content-' . $blog_type ); else: get_template_part( 'content', get_post_format() ); endif; endwhile; if ($blog_type == 'masonry') : ?> </div> <?php endif; ?> <?php // Post navigation. kleo_pagination(); else : // If no content, include the "No posts found" template. get_template_part( 'content', 'none' ); endif; ?> <?php get_template_part('page-parts/general-after-wrap');?> <?php get_footer(); ?>
TourismTribe.com
July 9, 2015 at 03:45 #67424sharmstrModeratorI’m getting a second page of results when I look at it instead of the same results on page 2
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
July 9, 2015 at 03:54 #67429fabienneParticipantI am not 🙁 I didn’t change a thing so that would be very weird!
TourismTribe.com
July 9, 2015 at 04:05 #67434sharmstrModeratorI’m special 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
Attachments:
You must be logged in to view attached files.July 13, 2015 at 06:31 #67976fabienneParticipantyou are very special Sharmstr because on my end it still wasn’t working. So I removed the
// Start the Loop.
query_posts(‘cat=136’);And I can now see them all. Phew.
However I still need to not display some categories on the blog page. I read https://archived.seventhqueen.com/forums/topic/how-to-exclude-a-tag-or-category-in-default-blog-page but that didn’t work unfortunately. Any other suggestions?
Ta
TourismTribe.com
July 13, 2015 at 16:04 #68032sharmstrModeratorIn that link, you’ll see that it only works when your home page is the blog archive.
Why not use the built in category page?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The topic ‘Blog summary page – issue with not displaying all posts’ is closed to new replies.