Price format for number fields

Add to View or Layout: $[format_money price="[types field='price' output='raw'][/types]"] Add to custom code/child theme function.php: //* Shortcode to format the price (add thousands comma separator)add_shortcode('format_money', 'sk_format_money');functionsk_format_money( $atts) {extract( shortcode_atts( array(…

Continue Reading Price format for number fields

Toolset Auto Populate Title with User’s Name & Date

//////// // Display Current Date add_shortcode('wpv-post-today', 'today_shortcode'); function today_shortcode() { return date( 'F j, Y', current_time( 'timestamp' )); } ///////////// // Auto Populate Title add_action('cred_submit_complete', 'auto_populate_title',10,2); function auto_populate_title($post_id, $form_data){ //…

Continue Reading Toolset Auto Populate Title with User’s Name & Date