projectContent()

Description

Displays a project's content - all images, text blocks and other files. Use this in the projects_view.html.

The function also ensures that all JavaScript and CSS files needed by group display types are included in the page, so you don't have to.

Usage

<?php echo projectContent( $id ); ?>

Parameters

$id

  • integer or string
  • optional
  • Default: currently selected project

If you need to use this function outside of the projects_view.html template, where you need to display a specific project, supply the project's database ID number or slug.

Examples

Default usage

<?php echo projectContent(); ?>`

Specific project

<?php echo projectContent( 'dear-city' ); ?>