Home » Docs » Functions » Class: Conductor » Conductor::get_conductor_content_layout_data()

Description

This function returns the Conductor content layout data for the current piece of content. Optionally, a Conductor content layout can be passed to fetch data for a specific Conductor content layout.

Conductor content layout data is setup/configured when registering a Conductor content layout.

The Conductor content layout data is passed to the conductor_content_layout_data filter before it is returned.

Technical Details

Resources

Examples

The following example demonstrates how to use the current Conductor content layout data to load a custom Conductor template based on the body_class parameter.

Note: If the template parameter is specified in the Conductor content layout data, Conductor will attempt to load that template automatically.