brianD-10
Support threads created in the last 30 days: 0
Favorite Forum Topics
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
How to control the display order of taxonomies
Started by: charlesE-3
in: Types Community Support
Problem: I would like to modify the sort orderby criteria for the terms returned by the wpv-post-taxonomy shortcode. Solution: It's not currently possible to modify the shortcode this way, but I will recommend that as a future enhancement. In the meantime, the following code can be used: add_shortcode( 'terms_ordered_by', 'terms_ordered_by_func'); function terms_ordered_by_func($atts) { $post_id = $atts['postid']; $tax = $atts['tax']; $i = 0; $return = ''; $args = array('orderby' => 'slug', 'order' => 'ASC'); $post_terms = wp_get_object_terms( $post_id, $tax, $args ); if ( ! empty( $post_terms ) ) { if ( ! is_wp_error( $post_terms ) ) { foreach( $post_terms as $term ) { $return .= ($i ? ', ' : '') . '<a href="' . get_term_link( $term->slug, $tax ) . '">' . esc_html( $term->name ) . '</a>'; $i++; } } } return $return; } Use the custom shortcode on your site as follows: [terms_ordered_by postid="12345" tax="your-taxonomy-slug"] Replace 12345 with the ID of a post, and replace your-taxonomy-slug with the slug of the taxonomy that contains the C# terms. If you would like to make the post ID dynamic depending on where you place the shortcode, then you can use the wpv-post-id shortcode instead of hard-coding the post ID: [terms_ordered_by postid="[wpv-post-id]" tax="your-taxonomy-slug"] |
4 | 9 | 7 years ago |
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
On archive page, images in loop disappear win filter applied.
Started by: brianD-10 in: Toolset Professional Support |
2 | 4 | 6 years, 7 months ago | ||
Conditional Shortcode not working
Started by: brianD-10
in: Toolset Professional Support
Problem: I have a conditional tag that does not appear to be working correctly. Solution: Check the syntax and try nesting double quotes and single quotes like this: |
2 | 3 | 6 years, 7 months ago | ||
Distance Filter is not working on archive page
Started by: brianD-10
in: Toolset Professional Support
Problem: I would like to use a distance filter on a WordPress Archive page, but it does not seem to affect the results. Solution: The distance filter is currently not implemented for WordPress Archives, but it is on our roadmap of improvements for this feature. Until this is fixed, you can recreate a WordPress Archive using a custom search View and place it in the Loop of the WordPress Archive. |
2 | 5 | 6 years, 7 months ago | ||
User Registration Password Fails
Started by: brianD-10 in: Toolset Professional Support |
2 | 3 | 6 years, 7 months ago | ||
PHP Fatal Error on User Registration on Beta
Started by: brianD-10
in: Toolset Professional Support
Problem: I enable "Ajax Submission" on the cred user form, I got: PHP Fatal error. The user is created, but a PHP error is thrown: Got error 'PHP message: PHP Warning: array_key_exists(): The first argument should be either a string or an integer in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/cred-frontend-editor/library/toolset/cred/embedded/models/CRED_Fields_Types_Utils.php on line 30 Solution: I notice that the original form works when I disabled the notification. I suspect there is a problem with php mailer Relevant Documentation: |
2 | 6 | 6 years, 8 months ago | ||
PHP Fatal Error on User Registration
Started by: brianD-10
in: Toolset Professional Support
Problem: I am trying to: create a user registration form I got: PHP Fatal error. The user is created, but a PHP error is thrown and the registration workflow halts. Error: Solution: It is a known bug of CRED plugin CRED 2.0-b1, it is fixed in next beta release "CRED 2.0-b2", you can download it here: https://toolset.com/account/downloads/ Choose channel: Beta Relevant Documentation: |
2 | 5 | 6 years, 8 months ago | ||
No field type for multi-select
Started by: brianD-10
in: Toolset Professional Support
Problem: I would like to create a multi-select custom field. Solution: Types does not currently offer a multi-select field type. Checkboxes can be used to capture multiple values in a custom field. Views offers a multi-select filter for custom search views. |
2 | 2 | 6 years, 8 months ago |