robertM-17
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 |
---|---|---|---|---|---|
CRED form slug renaming themselves and overwriting existing forms
1
2
Started by: robertM-17 in: Toolset Professional Support |
3 | 17 | 7 years ago | ||
emptying the trash for deleted CRED forms
Started by: robertM-17 in: Toolset Professional Support |
2 | 3 | 7 years, 1 month ago | ||
using site / global variables – where I do set and change?
Started by: robertM-17 in: Toolset Professional Support |
2 | 5 | 7 years, 1 month ago | ||
Using PHP variables in a shortcode
Started by: robertM-17
in: Toolset Professional Support
Problem: I would like to use a PHP variable in a shortcode attribute. Solution: You can't use PHP variables directly in your shortcode attributes. Instead, you could create a custom shortcode that returns the value of that variable, and place that shortcode instead of the variable in your attribute. $working_memap_id = 'some-post-slug'; add_shortcode( 'global_memap_id', 'global_memap_id_func'); function global_memap_id_func($atts) { global $working_memap_id; return $working_memap_id; } [cred form form="properformname" post="[global_memap_id]"] Register the name of the shortcode in Toolset > Settings > Frontend content > 3rd party shortcode arguments. Relevant Documentation: https://codex.wordpress.org/Shortcode_API |
2 | 3 | 7 years, 1 month ago |