— Premium Feature —
Use this shortcode to display the content from an entry in a table. The presentation of data is not customizable in this shortcode. If you need more control, you can create a View.
Use the shortcode builder
- Go to a WordPress page or post.
- Click on the 'Formidable' button above the content box.
- Click 'Single Entry' then insert the entry ID/key and select from the options below.
- Click the ‘Insert into Post’ button.
Insert the shortcode manually
Display the content from an entry by inserting the following shortcode on a page, post, View, or in an HTML field in a form.
[frm-show-entry id=x]
'x' = ID of the entry to display
Parameters
Required
- id - The id of the entry to display. If you are using this shortcode inside of a View you can use id=[id].
Optional
- plain_text - By default, this shortcode displays the content in a table. You can remove the HTML and display only the text by including plain_text=1.
[frm-show-entry id=x plain_text=1]
- user_info - Display user information in the table, including IP address, browser, and referring URL.
[frm-show-entry id=x user_info=1]
- include_blank - Include blank fields in the displayed content.
[frm-show-entry id=x include_blank=1]
- include_extras - By default, page breaks, headings, and HTML fields aren't included in this shortcode. You can include any/all of them as shown here:
[frm-show-entry id=x include_extras="page, section, html"]
- include_fields - Only include specific fields in the displayed content.
[frm-show-entry id=x include_fields="10,15"]
- exclude_fields - Exclude specific fields in the displayed content.
[frm-show-entry id=x exclude_fields="10,15"]
- show_image - If a file upload field is included, show any images with show_image=1. By default, the image url will be displayed.
[frm-show-entry id=x show_image=1]
- show_filename - When an image is displayed with show_image, include the filename as well.
[frm-show-entry id=x show_image=1 show_filename=1]
- add_link - Link to the full-sized image. This may be used in conjunction with show_image=1 and/or show_filename=1.
[frm-show-entry id=x show_image=1 show_filename=1 add_link=1]
- direction - By default the entry is displayed field names in the left column and entries in the right column. Switch those columns by using this shortcode:
[frm-show-entry id=x direction=rtl]
- font_size - Determine the size of the font.
[frm-show-entry id=x font_size="25px"]
- text_color - Determine the color of the text.
[frm-show-entry id=x text_color="b642f4"]
- border_width - Determine the width of the border.
[frm-show-entry id=x border_width="1px"]
- border_color - Determine the color of the border.
[frm-show-entry id=x border_color="000000"]
- bg_color - Determine the color of the background.
[frm-show-entry id=x bg_color="ffffff"]
- alt_bg_color - Determine the background color of the alternating rows.
[frm-show-entry id=x alt_bg_color="eeeeee"]
- line_breaks - Remove automatic line breaks from paragraph fields.
[frm-show-entry id=x line_breaks="0"]
- format - Specify which format the entry should be returned in. By default, the entry will be returned in a table (format=text). The other options include format=json and format=array. These alternative formats are best to use directly in php instead of using the shortcode on a page.
- array_separator - Use a different separator for multiple checkboxes or dropdown values. By default, this will be a comma separator.
[frm-show-entry id=x array_separator="<br/>"]
PHP Alternative
echo FrmProEntriesController::show_entry_shortcode( array( 'id' => x, 'plain_text' => 0, 'format' => 'text' ) );
'x' = ID of the entry you want to display
Get an entry array
$entry = FrmProEntriesController::show_entry_shortcode( array( 'id' => x, 'format' => 'array' ) );
'x' = ID of the entry you want to display