chrisH-10
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Create a link to a page that embeds a content edit form
Started by: chrisH-10 in: Toolset Professional Support |
2 | 5 | 6 years, 6 months ago | ||
Set publish date of post
Started by: chrisH-10
in: Toolset Professional Support
Problem: I would like to set the publish date and time of a post within the CRED Form used to create that post. Solution: There's no post publish date field built into CRED, so this will require some custom code and a generic field. Add a generic date field to your CRED form, then add this code to functions.php: add_action('cred_save_data', 'set_post_date_to', 100, 3); function set_post_date_to($post_id, $form_data) { if( $form_data['id'] == 12345 ) { $newDate = $_POST['set-new-date']['datetime'] . ' 00:00:00'; $my_post = array( 'ID' => $post_id, 'post_date' => $newDate, 'post_date_gmt' => $newDate, 'post_status' => 'future' ); // Update the post into the database wp_update_post( $my_post ); } } - Change the form id 12345 to match your form. Relevant Documentation: |
2 | 5 | 6 years, 7 months ago | ||
Need to remove unwanted markup from wpv-view
Started by: chrisH-10
in: Toolset Professional Support
Problem: Solution: You can use the code below to remove the extra div wrappers around your view. add_filter( 'wpv_filter_wpv_view_shortcode_output', 'prefix_clean_view_output', 5, 2 ); function prefix_clean_view_output( $out, $id ) { if ( $id == '375' ) { $start = strpos( $out, '<!-- wpv-loop-start -->' ); if ( $start !== false && strrpos( $out, '<!-- wpv-loop-end -->', $start ) !== false ) { $start = $start + strlen( '<!-- wpv-loop-start -->' ); $out = substr( $out , $start ); $end = strrpos( $out, '<!-- wpv-loop-end -->' ); $out = substr( $out, 0, $end ); } } return $out; } Replace the id 375 with the ID of your view. |
2 | 4 | 6 years, 12 months ago | ||
URL to image that is part of slider
Started by: chrisH-10 in: Toolset Professional Support |
2 | 5 | 7 years, 7 months ago | ||
Categories for first two results are not rendered
Started by: chrisH-10 in: Toolset Professional Support |
2 | 5 | 7 years, 7 months ago | ||
Order by Random not random!
Started by: chrisH-10 in: Toolset Professional Support |
2 | 3 | 7 years, 7 months ago | ||
Layouts adds extra row and col-sm-12 messing up layout
Started by: chrisH-10 in: Toolset Professional Support |
2 | 4 | 7 years, 7 months ago | ||
Layouts can't be used with any user role other than Administrator
Started by: chrisH-10 in: Toolset Professional Support |
2 | 7 | 7 years, 7 months ago | ||
Get error "You do not have sufficient permissions to access this page."
Started by: chrisH-10 in: Toolset Professional Support |
2 | 4 | 7 years, 7 months ago | ||
Move taxonomy entry box from sidebar into Post Field Group
Started by: chrisH-10 in: Toolset Professional Support |
2 | 4 | 7 years, 9 months ago | ||
Plugins have too many files to use with Google App Engine (GAE)
Started by: chrisH-10 in: Toolset Professional Support |
2 | 3 | 7 years, 9 months ago | ||
Can I create a relationship between a Post and a User?
Started by: chrisH-10 in: Toolset Professional Support |
2 | 2 | 7 years, 11 months ago | ||
Doesn't display published Layouts. There is a java script error on the page.
Started by: chrisH-10 in: Toolset Professional Support |
2 | 8 | 7 years, 11 months ago | ||
Layouts 1.5 does not show edit row icon – not production ready
Started by: chrisH-10 in: Toolset Professional Support |
2 | 3 | 8 years, 1 month ago | ||
Implementing a plugin to enable/integrate Types with official WP REST API
Started by: chrisH-10 in: Toolset Professional Support |
3 | 4 | 8 years, 2 months ago |