Rita
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 |
---|---|---|---|---|---|
Delete link not working for all users except admin
Started by: Rita
in: Toolset Professional Support
Problem: A delete post link doesn't seem to work for Authors or any other Users except Administrators. Solution: In this case, some custom code was causing a server notice that broke the deletion process. PHP Notice: Undefined index: DOING_AJAX in /path/to/site/wp-content/themes/my-theme/functions.php on line 55 Refactoring this code should solve the problem. |
2 | 8 | 4 years, 11 months ago | ||
Filter view by custom DATE field shortcode attribute
Started by: Rita in: Toolset Professional Support |
2 | 7 | 5 years, 8 months ago | ||
Conditional display of a custom field of the parent post if it is not empty
Started by: Rita in: Toolset Professional Support |
2 | 5 | 5 years, 9 months ago | ||
I can only create 7 child posts
Started by: Rita in: Toolset Professional Support |
2 | 3 | 5 years, 9 months ago | ||
Add post ID to custom post slug via cred form to prevent duplicate posts
Started by: Rita in: Toolset Professional Support |
1 | 2 | 5 years, 10 months ago | ||
Cannot add new hierarchical taxonomy with CRED form in safari
Started by: Rita
in: Toolset Professional Support
Problem: The issue here is that the user's Add New button on their Toolset form isn't showing up in Safari browsers Solution: This issue was actually being caused by the user's javascript that was being used on the form. It was complaining about the syntax of this line. The correct solution was. |
2 | 11 | 5 years, 11 months ago | ||
Shortcodes don't work at all
1
2
Started by: Rita in: Toolset Professional Support |
2 | 18 | 6 years, 2 months ago | ||
Notification to child post authors when parent post author edits the parent post
Started by: Rita
in: Toolset Professional Support
Problem: Solution: The particulars of where to get the user email addresses from are specific to this case, but custom code for this is suggested below which would need adapting: https://toolset.com/forums/topic/notification-to-child-post-authors-when-parent-post-author-edits-the-parent-post/#post-612960 |
2 | 11 | 6 years, 9 months ago | ||
Pass post title and post ID to duplicated custom post slug
1
2
Started by: Rita
in: Toolset Professional Support
Problem: I have a CRED form that allows users to clone a post by clicking the "Submit" button. This works, but I want the post's URL to change. I want the URL to be the same as the original post, but I want to append "-" and the post ID at the end. Solution: Use the cred_save_data hook to modify the post after it's created. Tweak the slug, update the post, and copy any postmeta over into the duplicated post. add_action('cred_save_data_22086', 'duplicate_post', 10, 2); function duplicate_post($post_id, $form_data) { // get data of original post $post = get_post( $_POST['wpcf-container_id'] ); $orig_slug = $post->post_name; $orig_id = $post->ID; $pos = strpos( $orig_slug, '-' . $orig_id); if ( $pos > -1 ) { // the -ID is part of the slug, so we need to get rid of that $orig_slug = substr( $orig_slug, 0, $pos); } $new_slug = $orig_slug . '-' . $post_id; // update the new post ID and slug $post->ID = $post_id; $post->post_name = $new_slug; wp_update_post( $post ); // get fields of original post $fields = get_post_custom( $_POST['wpcf-container_id'] ); // update the new post with these fields foreach ($fields as $key => $values) { foreach ($values as $value) { add_post_meta($post_id, $key, $value, false); } } } Relevant Documentation: |
2 | 17 | 7 years, 3 months ago | ||
Style selected radio – custom search
Started by: Rita
in: Toolset Professional Support
Problem: Solution: 2. Address your Radio Buttons with something like this vanilla CSS3: input[type="radio"]:checked+label { font-weight: bold; color:red; } Relevant Documentation: |
2 | 3 | 7 years, 4 months ago | ||
Wordfence conflicts. Content templates for access display twice.
Started by: Rita in: Toolset Professional Support |
2 | 11 | 7 years, 4 months ago |