Support » Plugin: Broadcast » Previous/Next link on some themes making troubles

  • 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/

  • The topic ‘Previous/Next link on some themes making troubles’ is closed to new replies.