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;
}