Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@zakmahboub22 zakmahboub22 commented Apr 10, 2017

Show all entry in one page ??

@gredyvr

This comment has been minimized.

Copy link

@gredyvr gredyvr commented Jul 31, 2017

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

@CurleyWebDev

This comment has been minimized.

Copy link

@CurleyWebDev CurleyWebDev commented Oct 9, 2017

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

This comment has been minimized.

Copy link

@annier4 annier4 commented Dec 17, 2017

how can i add a roles

@Colinsp

This comment has been minimized.

Copy link

@Colinsp 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
You can’t perform that action at this time.