Programming

Count Entries Shortcode

A simple shortcode to count entries for a specific field. Usage 1: [count_entries field_id=’153′ field_value=’Class’] Usage 2: [count_entries field_key=’sdlsK’ field_value=’Class’] View the code on Gist.

Add New Create Post Action Taxonomy

The Question Is there a way to create a new taxonomy for a custom post type from the value of a text field when using Pro’s Create Post form action? Formidable Slack Community Member The Answer Yes! In fact, Formidable has a knowledge base example on how to Create a new WordPress Category. The example [Read More…]

Increment Repeater Field Row Counter

This is a quick snippet to increment a row counter for a repeater field. The Slack Formidable Community member that asked how to do this is using the frm_repeat_start_rows filter to pre-load 10 rows in the repeaters. The first field in the repeater is a counter. View the code on Gist. To use, change the [Read More…]

Writing Transportable Code: Keys vs. IDs

When you drag and drop a field onto a form, two pieces of data to identify the field in code are created. The first, the field’s ID is created by MySQL using an auto increment field. This is a standard methodology used throughout WordPress. WordPress creates an ID for every single data element added to [Read More…]