Views is a WordPress plugin that lets you easily display content on your website's front-end in any way you choose.
Views User Guides include detailed documentation for creating lists of content, templates for content and archive page and also explain how to create parametric searches for any content type.
When you ask for help or report issues, make sure to tell us the versions of the Toolset plugins that you have installed and activated.
Viewing 15 topics - 1,561 through 1,575 (of 3,129 total)
Problem:
The user would like to filter a view using a taxonomy assigned to the parent post in a Toolset relationship.
Solution:
Actually, this is not possible. Toolset does not offer a way to filter a custom post type by the custom fields or taxonomies from a related post type. You can only filter with:
- The post's default(title, content, date, etc.) and custom fields.
- The post's taxonomies.
- ONE related post type in a Toolset relationship.
As a workaround, I'll suggest syncing the taxonomy from the parent post to the child posts. You can add a custom code, hooked to the save_post action, use the relationship API inside of it to synchronize the taxonomy assignment to the child posts.
Problem: I would like to change the following two text strings associated with Toolset's login forms:
1. ERROR: The password you entered for the username **USERNAME** is incorrect.
2. Unknown Error.
Solution: You can use the following function to override the two error messages you mentioned for the login form shortcode:
add_filter( 'gettext', 'tssupp_login_errors', 20, 3 );
function tssupp_login_errors( $translated_text, $text, $domain ) {
// change the text here to customize the messages.
$incorrect_msg = "The information you entered is incorrect.";
$unknown_msg = "There was an unexpected error, please try again.";
// do not edit below this line.
if ( !is_admin() ) {
switch ( $translated_text ) {
case 'The password you entered for the username %s is incorrect.' :
$translated_text = $incorrect_msg;
break;
case 'Unknown error.' :
$translated_text = $unknown_msg;
break;
}
}
return $translated_text;
}
Problem:
The user would like to extract the latitude and longitude from a Toolset Address field and store them as custom fields.
Solution:
This will need custom code. Hooked to the cred_save_data for Toolset forms, or the save_post for the admin screens. You can use the format argument in the types_render_field function or the types shortcode. Read more about it here https://toolset.com/documentation/customizing-sites-using-php/functions/#address
Problem:
The user has a custom taxonomy that has months as terms. Inside a view's taxonomy filter, he would like to display them in months order and spread them in two columns
Solution:
Toolset does not offer a way to sort taxonomy terms in a filter. Use a third-party plugin to enforce your custom taxonomy order. Examples: