add custom template
-
Hello,
Great plugin, I’m using this theme http://demo.aggressivemotions.com/barcelona/
How it’s possible to load same content with your plugin when a user is in a bottom in every single post?below i have post the single.php template from that theme, it may help me and let me know what code need to add in order to ajax load more single page ?
<?php $barcelona_is_pw_req = post_password_required(); get_header(); barcelona_breadcrumb(); if ( ! $barcelona_is_pw_req ) { barcelona_featured_img(); } ?> <div class="<?php echo esc_attr( barcelona_single_class() ); ?>"> <div class="<?php echo esc_attr( barcelona_row_class() ); ?>"> <main id="main" class="<?php echo esc_attr( barcelona_main_class() ); ?>"> <?php if ( have_posts() ): while( have_posts() ): the_post(); ?> <article id="post-<?php echo intval( get_the_ID() ); ?>" <?php post_class(); ?>> <?php barcelona_featured_img(); ?> <?php if ( barcelona_get_option( 'show_content' ) == 'on' ): ?> <section class="post-content"> <?php the_content(); if ( ! $barcelona_is_pw_req ) { wp_link_pages( array( 'before' => '<div class="pagination"><span class="page-numbers title">' . esc_html__( 'Pages:', 'barcelona' ) . '</span>', 'after' => '</div>', 'pagelink' => '%' ) ); } ?> </section><!-- .post-content --> <?php endif; ?> <?php if ( ! $barcelona_is_pw_req ): ?> <footer class="post-footer"> <?php if ( barcelona_get_option( 'show_tags' ) == 'on' && $barcelona_post_tags = get_the_tags() ): ?> <div class="post-tags"> <?php the_tags( '<strong class="title">'. esc_html__( 'Tags:', 'barcelona' ) .'</strong> ' ); ?> </div><!-- .post-tags --> <?php endif; ?> <?php barcelona_post_voting(); barcelona_social_sharing(); barcelona_author_box(); barcelona_pagination( 'nextprev' ); barcelona_post_ad(); comments_template(); ?> </footer><!-- .post-footer --> <?php endif; ?> </article> <?php endwhile; endif; ?> </main> <?php get_sidebar(); ?> </div><!-- .row --> <?php barcelona_related_posts(); ?> </div><!-- .container --> <?php get_footer();Please check this example under latest news
Thank you very much in advnce
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘add custom template’ is closed to new replies.