Last active
February 26, 2018 21:07
-
-
Save ellenbo/0b41e30cfbef160388a2592ac692bc9d to your computer and use it in GitHub Desktop.
Add Toolset View to template file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Field | |
types_render_field( "field-slug", array( ) ) | |
// View | |
$view_variable_name = array( 'title' => 'View Name' ); | |
echo render_view( $view_variable_name ); | |
// Content Template | |
echo render_view_template( ID-OF-CONTENT-TEMPLATE ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment