Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a class="button " href="<?php echo get_permalink(get_adjacent_post(true, '', false)->ID)?>">Следующий проект</a>
- <?php
- $next_post_id = get_adjacent_post(true, '', false)->ID;
- if($next_post_id != get_the_ID()) : ?>
- <a class="button " href="<?php the_permalink($next_post_id)?>">Следующий проект</a>
- <?php endif; ?>
- <?php
- $next_post = get_next_post(true);
- if($next_post) : ?>
- <a class="button " href="<?php the_permalink($next_post)?>">Следующий проект</a>
- <?php endif; ?>
Add Comment
Please, Sign In to add comment