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'];
?>
-
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