thoraldM
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Display age dynamically based on birth date and death date if applicable
Started by: thoraldM in: Toolset Professional Support |
|
2 | 3 | 1 year, 3 months ago | |
Can't seem to display post type taxonomy description
Started by: thoraldM in: Toolset Professional Support |
|
2 | 2 | 1 year, 7 months ago | |
How to display post content in the sidebar
Started by: thoraldM in: Toolset Professional Support |
2 | 3 | 3 years, 4 months ago | ||
A little help with Previous/Next Post navigation for Custom Post Type
Started by: thoraldM in: Toolset Professional Support |
|
2 | 8 | 3 years, 5 months ago | |
Content Template Fields Disappeared
Started by: thoraldM in: Toolset Professional Support |
|
2 | 6 | 3 years, 5 months ago | |
Datepicker not showing in Editor
Started by: thoraldM in: Toolset Professional Support |
2 | 3 | 4 years, 4 months ago | ||
Featured post slider
Started by: thoraldM in: Toolset Professional Support |
|
2 | 2 | 6 years, 4 months ago | |
Adapting existing theme layouts to custom post types
Started by: thoraldM
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
|
1 | 2 | 6 years, 5 months ago | |
Can you capture IP data using Forms?
Started by: thoraldM
in: Toolset Professional Support
Problem: Solution: function tssupp_record_ip( $post_id, $form_data ){ if ( in_array( $form_data['id'], array( 123, 234 ) ) ) { // Edit Form IDs // source: https://www.codexworld.com/how-to/get-user-ip-address-php/ if(!empty($_SERVER['HTTP_CLIENT_IP'])){ //ip from share internet $ip = $_SERVER['HTTP_CLIENT_IP']; }elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){ //ip pass from proxy $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; }else{ $ip = $_SERVER['REMOTE_ADDR']; } update_post_meta( $post_id, '_userip', $ip ); } } add_action( 'cred_save_data', 'tssupp_record_ip', 10, 2 ); In this example the IP address is saved to a hidden field, but you may want to save it to a generic or a Types field. Relevant Documentation: |
|
3 | 8 | 6 years, 5 months ago |