geoffD
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Multiple site failure
Commencé par : geoffD in: Toolset Professional Support |
2 | 10 | Il y a 3 années et 7 mois | ||
Error Header information
Commencé par : geoffD in: Toolset Professional Support |
2 | 4 | Il y a 3 années et 8 mois | ||
My host has updated the server software i.e. php etc and now my Toolset site is
Commencé par : geoffD
in: Toolset Professional Support
Problem: Solution: |
2 | 3 | Il y a 4 années | ||
Video Recording
Commencé par : geoffD in: Toolset Professional Support |
2 | 2 | Il y a 4 années et 10 mois | ||
Query Filter in Views for Blank field
1
2
3
Commencé par : 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 | Il y a 4 années et 11 mois | ||
Edit post link not working
Commencé par : geoffD in: Toolset Professional Support |
2 | 10 | Il y a 5 années | ||
Find and change CPT field on form submission
Commencé par : geoffD in: Toolset Professional Support |
2 | 7 | Il y a 5 années | ||
User sign-up not working
Commencé par : geoffD in: Toolset Professional Support |
2 | 11 | Il y a 5 années | ||
Split: User sign-up not working – validate user form
Commencé par : geoffD in: Toolset Professional Support |
2 | 11 | Il y a 5 années | ||
Shortcode not showing Link title correctly
Commencé par : geoffD in: Toolset Professional Support |
2 | 6 | Il y a 5 années | ||
Custom Hook with CPT
Commencé par : geoffD in: Toolset Professional Support |
2 | 14 | Il y a 5 années | ||
Styling Issue
Commencé par : geoffD in: Toolset Professional Support |
2 | 3 | Il y a 5 années | ||
Access Control of Users content
Commencé par : 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 | Il y a 5 années | ||
CPT not working properly
Commencé par : geoffD in: Toolset Professional Support |
2 | 10 | Il y a 5 années et 1 mois | ||
Non Toolset relationship
1
2
Commencé par : geoffD in: Toolset Professional Support |
2 | 20 | Il y a 5 années et 1 mois |