ResolvedRelated posts above pagination

  • Author
    Posts
  • John Chen
    Participant

    Hi there, great plugin here. I just have one minor issue. I have a pagination hack installed (not a plugin), which just involves editing my functions.php

    Right now the related posts is above the pagination. Is there a way to make it go below the pagination?

    Example:

    http://johnnyafrica.com/best-travel-johnny-africa/

    #1971
    iLen
    Keymaster

    Hi, excuse the delay, I was in exams at the University.
    You must disable this option, and put this code <?php if ( function_exists( "get_yuzo_related_posts" ) ) { get_yuzo_related_posts(); } ?> into your single.phpfile, just after the function the_content(); With this Yuzo is shown in this location.
    yuzo related post

    I await your response

    #1978
    John Chen
    Participant

    Hi I don’t think it’s working? If you look at my posts, the pagination still below the related posts.

    I have attached my single.php, maybe there is something I’m missing?

    <?php
    get_header();
    get_template_part("navigation");
    get_template_part("blogheading");
    get_template_part("search", "section");
    $mainClass = pi_sidebar_position() == 'no_sidebar' ? 'col-md-12' : 'col-md-9';
    while ( have_posts() ) : the_post();
    ?>
        <section class="blog-content blog-standard">
            <div class="container">
                <div class="row">
                    <!-- CONTENT -->
                    <div class="<?php echo esc_attr($mainClass); ?>">
                        <div class="content">
                           	<div <?php post_class("post"); ?>>
    							<?php pi_media($post->ID); ?>
    							<div class="post-body">
                                    <div class="post-cat">
                                        <?php
                                        if ( $post->post_type == 'post' )
                                        {
                                           the_category();
                                        }elseif($post->post_type == 'tip'){
                                            $terms = wp_get_post_terms($post->ID, 'tip_cat');
                                            if ( !empty($terms) )
                                            {
                                                echo '<ul class="post-categories">';
                                                foreach ( $terms as $term )
                                                {
                                                    echo '<li><a href="'.get_term_link($term->term_id, 'tip_cat').'">'.esc_html($term->name).'</a></li>';
                                                }
                                                echo '</ul>';
                                            }
                                        }
                                        ?>
                                    </div>
    								<div class="post-title">
    									<h1><?php the_title(); ?></h1>
    								</div>
                                    <?php pi_the_post_meta($post->ID); ?>
                                    <div class="post-date">
                                        <span><?php echo get_the_date(); ?></span>
                                    </div>
                                    <div class="post-entry">
    									<?php the_content(); ?>
    <?php if ( function_exists( "get_yuzo_related_posts" ) ) { get_yuzo_related_posts(); } ?>
                                        <?php wp_link_pages(); ?>
    									<?php edit_post_link('Edit', '<p class="edit-this">', '</p>'); ?>
                                    </div>
                                </div>
                                <div class="tag-share">
        							<?php 
        								if ( has_tag() )
        								{
        									?>
        									<div class="tag-box">
        										<?php the_tags('<h4>Tags</h4><div class="tag">', ',', '</div>'); ?>
        									</div>
        									<?php
        								}
        								pi_render_sharing_box();
        							?>
                                </div>
                            </div>
                            <?php 
                                pi_render_author_box(); 
                                pi_render_next_prev_post_link();
                                pi_render_related_posts();
                                comments_template();
                            ?>
                        </div>
                    </div>
                    <!-- END / CONTENT -->
    				<?php get_sidebar(); ?>
                </div>
            </div>
        </section>
    <?php
    pi_set_post_views($post->ID);
    endwhile;
    
    get_template_part("social");
    get_template_part("footer", "section");
    get_footer();
    #2001
    iLen
    Keymaster

    Hello, The code is well placed in the file. If you cleaned the cache of the page? If you have a cache plugin please clean it. I await your response.

    #2005
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.