postInfo()

Description

Returns an array containing all data about the project.

Here is an example:

array(  
    'id'        => 1,  
    'title'     => 'New User Guide launched',  
    'slug'      => 'new-user-guide-launched',  
    'date'      => 543456000,  
    'post'      => 'The new user guide has been launched with a dedicated developer section and full template tag documentation.', 
    'image'     => 'newguide.jpg', 
    'status'    => 1 
)

Usage

<?php 
    $post_info= postInfo( $id/slug ); 
?>

Parameters

$id/slug

  • integer or string
  • optional

You can specify which post to retrieve, by supplying either the ID number or slug.

Examples

<?php 
    $post_info= postInfo( 'new-user-guide' ); 
    echo $post_info['image']; 
?>

<?php 
    $post_info= postInfo( postId() ); 
    echo $post_info['title']; 
?>