Auto Loaded Posts Repeated Again And Again…
-
When I scrolled down of the post, the next post was the same. Please, tell me how to fix this bug.
-
Hi zirzop. First can you tell me what theme you are using?
Bimber wordpres theme
Have configured the settings correct? If so, then you will need to create a custom template. Read how to support the theme.
Yes I did, still doesn’t work. How can i create a custom template? Do you mean content-partial.php?
Yes, you need to create a custom content-partial.php template file that loads the content for this theme.
Okay I get it. But I need to know how to customize my new content-partial.php, what things should I change or add to my custom-partial.php file? Could you give an example?
If you open up the single.php file of the theme, it should give you an example as to how this theme loads its content. You will then need to apply something similar to the content-partial.php file.
Hope that helps.
🙁 I still can’t fix it. Please help me more 🙁
Here is my content-single-classic.php
<?php /** * The default template for displaying single post content (with sidebar). * This is a template part. It must be used within The Loop. * * @package Bimber_Theme */ $bimber_entry_data = bimber_get_template_part_data(); $bimber_elements = $bimber_entry_data['elements']; ?> <article id="post-<?php the_ID(); ?>" <?php post_class( 'entry-tpl-classic' ); ?> itemscope="" itemtype="<?php echo esc_attr( bimber_get_entry_microdata_itemtype() ); ?>"> <header class="entry-header"> <?php if ( $bimber_elements['categories'] ) : bimber_render_entry_categories( array( 'class' => 'entry-categories-solid' ) ); endif; ?> <?php the_title( '<h1 class="g1-mega g1-mega-1st entry-title" itemprop="headline">', '</h1>' ); ?> <?php if ( bimber_can_use_plugin( 'wp-subtitle/wp-subtitle.php' ) ) : the_subtitle( '<h2 class="entry-subtitle g1-gamma g1-gamma-3rd">', '</h2>' ); endif; ?> <?php if ( $bimber_elements['author'] || $bimber_elements['date'] || $bimber_elements['views'] || $bimber_elements['comments_link'] ) : ?> <p class="entry-meta entry-meta-m"> <span class="entry-meta-wrap"> <?php if ( $bimber_elements['author'] ) : bimber_render_entry_author( array( 'avatar' => $bimber_elements['avatar'], 'avatar_size' => 40, ) ); endif; ?> <?php if ( $bimber_elements['date'] ) : bimber_render_entry_date( array( 'use_microdata' => true ) ); endif; ?> </span> <span class="entry-meta-wrap"> <?php if ( $bimber_elements['views'] ) : bimber_render_entry_view_count(); endif; ?> <?php if ( $bimber_elements['comments_link'] ) : bimber_render_entry_comments_link(); endif; ?> </span> </p> <?php endif; ?> </header> <?php if ( bimber_show_entry_featured_media( $bimber_elements['featured_media'] ) ) : bimber_render_entry_featured_media( array( 'size' => 'bimber-grid-2of3', 'apply_link' => false, ) ); endif; ?> <div class="entry-content g1-typography-xl"> <?php wp_link_pages(); ?> <?php the_content(); wp_link_pages(); ?> </div> <div class="entry-after"> <?php if ( $bimber_elements['tags'] ) : bimber_render_entry_tags(); endif; ?> <?php if ( $bimber_elements['newsletter'] ) : get_template_part( 'template-parts/newsletter-after-content' ); endif; ?> <?php if ( $bimber_elements['navigation'] ) : get_template_part( 'template-parts/nav-single' ); endif; ?> <?php if ( $bimber_elements['author_info'] ) : get_template_part( 'template-parts/author-info' ); endif; ?> </div> <?php get_template_part( 'template-parts/ad-before-related-entries' ); ?> <?php if ( $bimber_elements['related_entries'] ) : get_template_part( 'template-parts/collection-related' ); endif; ?> <?php get_template_part( 'template-parts/ad-before-more-from' ); ?> <?php if ( $bimber_elements['more_from'] ) : get_template_part( 'template-parts/collection-more-from' ); endif; ?> <?php get_template_part( 'template-parts/ad-before-comments' ); ?> <?php if ( $bimber_elements['comments'] ) : ?> <?php if ( comments_open() || get_comments_number() ) : comments_template(); endif; ?> <?php endif; ?> <?php get_template_part( 'template-parts/ad-before-dont-miss' ); ?> <?php if ( $bimber_elements['dont_miss'] ) : get_template_part( 'template-parts/collection-dont-miss' ); endif; ?> <meta itemprop="mainEntityOfPage" content="<?php echo esc_url( get_permalink() ); ?>"/> <meta itemprop="dateModified" content="<?php echo esc_attr( get_the_modified_time( 'Y-m-d' ) . 'T' . get_the_modified_time( 'H:i:s' ) ); ?>"/> <span itemprop="publisher" itemscope itemtype="http://schema.org/Organization"> <meta itemprop="name" content="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" /> <span itemprop="logo" itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop="url" /> </span> </span> </article>This is also my custom “content-partial.php” that you mentioned
<?php /** * This file loads the content partially. * * @version 1.4.4 */ // Fetch plugin settings. $remove_comments = get_option('auto_load_next_post_remove_comments'); // Load content before the loop. do_action('alnp_load_before_loop'); // Check that there are more posts to load. while (have_posts()) : the_post(); $post_format = get_post_format(); // Post Format e.g. video if (false === $post_format) { $post_format = 'standard'; } // Load content before the post content. do_action('alnp_load_before_content'); // Load content before the post content for a specific post format. do_action('alnp_load_before_content_type_'.$post_format); if ($post_format == 'standard') { // Include the content. get_template_part('content'); } else { // Include the post format content. if (locate_template('format-'.$post_format.'.php') != '') { get_template_part('format', $post_format); } else { // If no format-{post-format}.php file found then fallback to content-{post-format}.php get_template_part('content', $post_format); } } // If comments are open or we have at least one comment, load up the comment template. if (comments_open() || get_comments_number()) : if ($remove_comments != 'yes') { comments_template(); } endif; // Load content after the post content for a specific post format. do_action('alnp_load_after_content_type_'.$post_format); // Load content after the post content. do_action('alnp_load_after_content'); ?> <nav class="navigation post-navigation" role="navigation"> <span class="nav-previous"><?php previous_post_link('%link', '<span class="meta-nav">'._x('←', 'Previous post link', 'auto-load-next-post').'</span> %title'); ?></span> </nav> <?php // End the loop. endwhile; // Load content after the loop. do_action('alnp_load_after_loop');What should I do? 🙁
Sebastien, I need your help
I provide direct support where I can be more efficient. Please take a look.
The topic ‘Auto Loaded Posts Repeated Again And Again…’ is closed to new replies.