How can I make next/previous buttons to navigate my projects?
In the layout_projects.php file of your theme, place the nextProject() and prevProject() template tags where you would like them to be displayed.
Your layout_projects.php may look like this then:
<?php include_once "header.php"; ?>
<div id="project_main">
<?php echo projectView(); ?>
</div>
<div id="navigation">
<a href="<?php echo prevProject(); ?>">← Prev</a> | <a href="<?php echo nextProject(); ?>">Next →</a>
</di>
<?php include_once "footer.php"; ?>
-
FAQ
- What is the Page Type and how do I use it?
- How do I make blog pagination work?
- How can I make next/previous buttons to navigate my projects?
- How do I include Vimeo, YouTube, SoundCloud etc in my projects, pages, blog posts?
- How do I make excerpts for my blog posts? (Using the {more} tag)
- View all (2 more)
-
General Documentation
-
Themes
-
Code Documentation