Last active
September 18, 2020 08:23
-
-
Save Shelob9/0c8fa854aa53fc1d12b49bfd5a5ce6f6 to your computer and use it in GitHub Desktop.
Examples of how to show the Caldera Forms entry viewer in the front end of your WordPress site. See: https://calderaforms.com/doc/caldera-forms-wordpress-form-entry-viewer/
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
<?php | |
add_filter( 'the_content', function( $content ){ | |
$post = get_post(); | |
if( 42 ===$post->ID ){ | |
$form = 'cf1234567'; | |
$content .= Caldera_Forms::render_form( $form ); | |
$content .= Caldera_Forms_Entry_Viewer::form_entry_viewer_2( $form ); | |
} | |
}); |
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
<?php | |
add_filter( 'the_content', function( $content ){ | |
$post = get_post(); | |
if( 42 === $post->ID ){ | |
$content .= Caldera_Forms_Entry_Viewer::form_entry_viewer_2( 'cf1234567' ); | |
} | |
}); |
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
[caldera_forms_entry_viewer id="cf1234567" type="classic" with_toolbar="true"] |
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
[caldera_forms_entry_viewer id="cf1234567"] |
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
<?php | |
/** | |
* Caldera Forms classic entry viewer 2 | |
* Use form config array | |
*/ | |
$form = Caldera_Forms_Forms::get_form( 'cf1234567' ); | |
if ( is_array( $form ) ) { | |
echo Caldera_Forms_Entry_Viewer::form_entry_viewer_2($form); | |
} |
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
<?php | |
/** | |
* Caldera Forms classic entry viewer | |
* Use form ID as string | |
*/ | |
echo Caldera_Forms_Entry_Viewer::form_entry_viewer_1( 'cf1234567' ); |
How to add search in entry list view?
Sometimes we need search a query
Thank you for creating an awesome plugin!
Is there a way to choose which fields are displayed in the entries view? I have a name field that I would definitely like displayed. I am interested in queries as well.
how can i add a roles
How can I only show some of the form fields NOT all of them?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Show all entry in one page ??