Anthony
In den letzten 30 Tagen erstellte Support-Threads: 0
Lieblings-Forenthemen
This user has no favorite topics.
Forum Topics Created
| Status | Thema | Supporter | Stimmen | Artikel | Aktualität |
|---|---|---|---|---|---|
|
View query filter for whether an image custom field has content
Gestartet von: Anthony
in: Toolset Professional Support
Problem: The issue here is that the user wanted to filter their view with a query filter to not include posts where the image custom field is empty. Solution: This can be done with the hook below.
//Return only products with banner images
add_filter( 'wpv_filter_query', 'filter_empty_banners', 99, 3 );
function filter_empty_banners( $query_args,$view_settings ,$view_id ) {
if ( $view_id == 44576) {
$query_args['meta_query'] = array(
array(
'key' => 'wpcf-banner',
'value' => '',
'compare' => '!='
)
);
}
return $query_args;
}
Add the above to your Toolset custom code section in Toolset -> Custom Code and activate it. You will need to change the 44576 to your view's id as well as the wpcf-banner to the slug of your image field keeping the wpcf- prefix. |
|
2 | 5 | vor 4 years, 7 months | |
|
Where can I download the Modules Manager plugin?
Gestartet von: Anthony
in: Toolset Professional Support
Problem: Solution: And here is a direct URL https://toolset.com/download/toolset-module-manager/ |
|
2 | 7 | vor 4 years, 7 months | |
|
I want to import large amounts of formatted text into custom fields in 200 posts
Gestartet von: Anthony in: Toolset Professional Support |
|
2 | 5 | vor 4 years, 8 months | |
|
Update of Types fails: "Download failed. (Forbidden)"
Gestartet von: Anthony in: Toolset Professional Support |
|
2 | 3 | vor 4 years, 10 months | |
|
Converting Reusable Block back to regular blocks stalls
Gestartet von: Anthony
in: Toolset Professional Support
Problem: Solution: I won't recommend making a view reusable. It is already reusable, by design. But, if you need a similar view with slight updates, you will have to create it from scratch. |
|
2 | 4 | vor 4 years, 10 months | |
|
CRED edit form throws an error on Submit
Gestartet von: Anthony
in: Toolset Professional Support
Problem: Solution: |
|
2 | 8 | vor 4 years, 11 months |