geoffD
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
Status | Debate | Supporter | Voces | Mensajes | Caducidad |
---|---|---|---|---|---|
Multiple site failure
Iniciado por: geoffD en: Toolset Professional Support |
2 | 10 | hace 3 años, 7 meses | ||
Error Header information
Iniciado por: geoffD en: Toolset Professional Support |
2 | 4 | hace 3 años, 8 meses | ||
My host has updated the server software i.e. php etc and now my Toolset site is
Iniciado por: geoffD
en: Toolset Professional Support
Problem: Solution: |
2 | 3 | hace 4 años | ||
Video Recording
Iniciado por: geoffD en: Toolset Professional Support |
2 | 2 | hace 4 años, 10 meses | ||
Query Filter in Views for Blank field
1
2
3
Iniciado por: geoffD
en: 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 | hace 4 años, 11 meses | ||
Edit post link not working
Iniciado por: geoffD en: Toolset Professional Support |
2 | 10 | hace 4 años, 11 meses | ||
Find and change CPT field on form submission
Iniciado por: geoffD en: Toolset Professional Support |
2 | 7 | hace 4 años, 11 meses | ||
User sign-up not working
Iniciado por: geoffD en: Toolset Professional Support |
2 | 11 | hace 4 años, 12 meses | ||
Split: User sign-up not working – validate user form
Iniciado por: geoffD en: Toolset Professional Support |
2 | 11 | hace 4 años, 12 meses | ||
Shortcode not showing Link title correctly
Iniciado por: geoffD en: Toolset Professional Support |
2 | 6 | hace 5 años | ||
Custom Hook with CPT
Iniciado por: geoffD en: Toolset Professional Support |
2 | 14 | hace 5 años | ||
Styling Issue
Iniciado por: geoffD en: Toolset Professional Support |
2 | 3 | hace 5 años | ||
Access Control of Users content
Iniciado por: geoffD
en: 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 | hace 5 años | ||
CPT not working properly
Iniciado por: geoffD en: Toolset Professional Support |
2 | 10 | hace 5 años | ||
Non Toolset relationship
1
2
Iniciado por: geoffD en: Toolset Professional Support |
2 | 20 | hace 5 años, 1 mes |