blog()

Description

Displays blog posts 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 blog posts.

Usage

<?php 
    echo blog( $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 blog( 'limit= 10' ); 
?>

Options as array

<?php 
    $options= array( 
        'limit' =>  '10' 
    ); 
    echo blog( $options ); 
?>

Related

Page Type Options for Blog