chrisH-10
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
CRED: Create new related post while on parent editing page
Commencé par : chrisH-10 in: Toolset Professional Support |
2 | 14 | Il y a 6 années et 4 mois | ||
Create a link to a page that embeds a content edit form
Commencé par : chrisH-10 in: Toolset Professional Support |
2 | 5 | Il y a 6 années et 6 mois | ||
Set publish date of post
Commencé par : 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 | Il y a 6 années et 6 mois | ||
Need to remove unwanted markup from wpv-view
Commencé par : 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 | Il y a 6 années et 11 mois | ||
URL to image that is part of slider
Commencé par : chrisH-10 in: Toolset Professional Support |
2 | 5 | Il y a 7 années et 6 mois | ||
Categories for first two results are not rendered
Commencé par : chrisH-10 in: Toolset Professional Support |
2 | 5 | Il y a 7 années et 6 mois | ||
Order by Random not random!
Commencé par : chrisH-10 in: Toolset Professional Support |
2 | 3 | Il y a 7 années et 7 mois | ||
Layouts adds extra row and col-sm-12 messing up layout
Commencé par : chrisH-10 in: Toolset Professional Support |
2 | 4 | Il y a 7 années et 7 mois | ||
Layouts can't be used with any user role other than Administrator
Commencé par : chrisH-10 in: Toolset Professional Support |
2 | 7 | Il y a 7 années et 7 mois | ||
Get error "You do not have sufficient permissions to access this page."
Commencé par : chrisH-10 in: Toolset Professional Support |
2 | 4 | Il y a 7 années et 7 mois | ||
Move taxonomy entry box from sidebar into Post Field Group
Commencé par : chrisH-10 in: Toolset Professional Support |
2 | 4 | Il y a 7 années et 8 mois | ||
Plugins have too many files to use with Google App Engine (GAE)
Commencé par : chrisH-10 in: Toolset Professional Support |
2 | 3 | Il y a 7 années et 8 mois | ||
Can I create a relationship between a Post and a User?
Commencé par : chrisH-10 in: Toolset Professional Support |
2 | 2 | Il y a 7 années et 10 mois | ||
Doesn't display published Layouts. There is a java script error on the page.
Commencé par : chrisH-10 in: Toolset Professional Support |
2 | 8 | Il y a 7 années et 10 mois | ||
Layouts 1.5 does not show edit row icon – not production ready
Commencé par : chrisH-10 in: Toolset Professional Support |
2 | 3 | Il y a 8 années et 1 mois |