projects()
Description
Displays projects using a set of options to control how and what is returned.
This function is primarily used by the pageContent() function, but can also be used in templates to display projects.
Usage
<?php
echo projects( $options );
?>
Parameters
$options
- string or array
- optional
The options to control which projects are displayed and how. See the Page Type Options reference for a complete list of options.
Examples
Options as string
<?php
echo projects( 'section= latest, order= random' );
?>
Options as array
<?php
$options= array(
'section' => 'latest',
'order' => 'random'
);
echo projects( $options );
?>
Related
-
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