geoffD
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 |
---|---|---|---|---|---|
Multiple site failure
Gestartet von: geoffD in: Toolset Professional Support |
2 | 10 | vor 3 Jahren, 7 Monaten | ||
Error Header information
Gestartet von: geoffD in: Toolset Professional Support |
2 | 4 | vor 3 Jahren, 8 Monaten | ||
My host has updated the server software i.e. php etc and now my Toolset site is
Gestartet von: geoffD
in: Toolset Professional Support
Problem: Solution: |
2 | 3 | vor 4 Jahren | ||
Video Recording
Gestartet von: geoffD in: Toolset Professional Support |
2 | 2 | vor 4 Jahren, 10 Monaten | ||
Query Filter in Views for Blank field
1
2
3
Gestartet von: geoffD
in: Toolset Professional Support
Problem: I would like to create a custom shortcode that finds all the "person" posts where the author is the current logged-in User, and filter those posts by two custom fields. One of the fields must equal "Yes" and the other field is either blank or does not exist. Solution: Use an associative array meta query to query by two custom fields: /* Check if cash gift has any messages */ function cash_gift_message_func( $atts ){ global $current_user; wp_get_current_user(); $all_posts = get_posts( array( 'numberposts' => -1, 'author' => $current_user->ID, 'post_type' => 'person', 'meta_query' => array( 'relation' => 'AND', 'message_clause' => array( 'relation' => 'OR', array( 'key' => 'wpcf-message-for-recipient', 'compare' => '!=', 'value' => '' ), array( 'key' => 'wpcf-message-for-recipient', 'compare' => 'NOT EXISTS' ) ), 'gift_clause' => array( 'key' => 'wpcf-cash-gift', 'compare' => '=', 'value' => 'Yes' ) ) ) ); $exec_number = count($all_posts); return $exec_number; } add_shortcode( 'cash_message_func', 'cash_gift_message_func' ); Relevant Documentation: |
3 | 32 | vor 4 Jahren, 11 Monaten | ||
Edit post link not working
Gestartet von: geoffD in: Toolset Professional Support |
2 | 10 | vor 4 Jahren, 11 Monaten | ||
Find and change CPT field on form submission
Gestartet von: geoffD in: Toolset Professional Support |
2 | 7 | vor 4 Jahren, 11 Monaten | ||
User sign-up not working
Gestartet von: geoffD in: Toolset Professional Support |
2 | 11 | vor 4 Jahren, 12 Monaten | ||
Split: User sign-up not working – validate user form
Gestartet von: geoffD in: Toolset Professional Support |
2 | 11 | vor 4 Jahren, 12 Monaten | ||
Shortcode not showing Link title correctly
Gestartet von: geoffD in: Toolset Professional Support |
2 | 6 | vor 5 Jahren | ||
Custom Hook with CPT
Gestartet von: geoffD in: Toolset Professional Support |
2 | 14 | vor 5 Jahren | ||
Styling Issue
Gestartet von: geoffD in: Toolset Professional Support |
2 | 3 | vor 5 Jahren | ||
Access Control of Users content
Gestartet von: geoffD
in: Toolset Professional Support
Problem: If current page is not written by current logged in user then redirect to home page. Solution: There isn't such kind of built-in feature within Toolset Plugins, you can consider custom codes, for example: https://toolset.com/forums/topic/access-control-of-users-content/#post-1376053 Relevant Documentation: https://codex.wordpress.org/Function_Reference/get_post_field |
2 | 13 | vor 5 Jahren | ||
CPT not working properly
Gestartet von: geoffD in: Toolset Professional Support |
2 | 10 | vor 5 Jahren | ||
Non Toolset relationship
1
2
Gestartet von: geoffD in: Toolset Professional Support |
2 | 20 | vor 5 Jahren, 1 Monat |