Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Last active September 18, 2020 08:23
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Shelob9/0c8fa854aa53fc1d12b49bfd5a5ce6f6 to your computer and use it in GitHub Desktop.
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/
<?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 );
}
});
<?php
add_filter( 'the_content', function( $content ){
$post = get_post();
if( 42 === $post->ID ){
$content .= Caldera_Forms_Entry_Viewer::form_entry_viewer_2( 'cf1234567' );
}
});
[caldera_forms_entry_viewer id="cf1234567" type="classic" with_toolbar="true"]
[caldera_forms_entry_viewer id="cf1234567"]
<?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);
}
<?php
/**
* Caldera Forms classic entry viewer
* Use form ID as string
*/
echo Caldera_Forms_Entry_Viewer::form_entry_viewer_1( 'cf1234567' );
@zakmahboub22
Copy link

Show all entry in one page ??

@gredyvr
Copy link

gredyvr commented Jul 31, 2017

How to add search in entry list view?
Sometimes we need search a query

@CurleyWebDev
Copy link

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.

@annier4
Copy link

annier4 commented Dec 17, 2017

how can i add a roles

@Colinsp
Copy link

Colinsp commented Mar 17, 2018

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