WordPress.org

Ready to get started?Download WordPress

Forums

ThreeWP Broadcast
Previous/Next link on some themes making troubles (1 post)

  1. steelmaiden
    Member
    Posted 1 year ago #

    Hi,

    i use a theme that have the "Previous" and "Next" post link at the bottom of each article. The problem is that those links go to the broadcasted article permalink and not the child permalink.

    <!-- next previous posts -->
                    <?php
                    $next_post = get_next_post();
                    $prev_post = get_previous_post();
    
                    if (!empty($next_post) or !empty($prev_post)) {
                        echo '<div class="row next-prev">';
    
                            if (!empty($prev_post)) {
                                ?>
                                    <div class="half-grid prev-post">
                                        <div>
                                            <?php _e('PREVIOUS ARTICLE', TD_THEME_NAME); ?>
                                        </div>
                                        <a>ID ); ?>"><?php echo $prev_post->post_title; ?></a>
                                    </div>
                                <?php
                            } else {
                                ?>
                                <div class="half-grid ">
    
                                </div>
                                <?php
                            } 
    
                            if (!empty($next_post)) { ?>
                                <div class="half-grid next-post">
                                    <div>
                                        <?php _e('NEXT ARTICLE', TD_THEME_NAME); ?>
                                    </div>
                                    <a>ID ); ?>"><?php echo $next_post->post_title; ?></a>
                                </div>
                            <?php }
                        echo '</div>';
                    }
    
                    ?>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    Any way to fix this?

    Tnx

    http://wordpress.org/extend/plugins/threewp-broadcast/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.