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,546 through 1,560 (of 2,104 total)
Problem: I have two custom post types - Characters and Photographs - linked in a post relationship. The Photographs CPT has a custom taxonomy Photoshoots, with terms for each Photoshoot assigned to each Photograph. In the template for Characters posts, I would like to display a list of all Photoshoots terms applied to all Photographs posts related to the current Character post.
Solution: The problem does not have a straightforward solution, because you need to filter a View of taxonomy terms by the properties of a related post type. The best solution requires you to use the legacy Views editor to create a nested View structure that produces the desired terms list.
See step-by-step instructions in the following comment: https://toolset.com/forums/topic/taxonomy-view-6/#post-2101763
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;
}