Global variables #21915
Kacem78
started this conversation in
Feature Request
Global variables
#21915
Replies: 1 comment
|
Currently, I'm solving that by creating a dynamic tags and using in different places |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
What problem is your feature request going to solve? Please describe.
the global variables will help speed up the maintenance and creation of any pages/posts
Describe the solution you'd like
just have a global table could be within the site setting where we hold all the global variables for the site, such as phone numbers, emails, adresse, names, etc , any thing that could be found on different place in the site,
so if we want to modify let say just a phone number, we just then modify it on the global setting and that it
the global variable could be any where in the widgets, in the titles, in the texts , menus, etc
we can use it via a shortcode, here is bellow in exemple for a phone number
let imagine in a title, rather then being hard coded such as "Call as now at number : +0123456789"
instead we can use : "Call as now at number : {{phone}}" where phone is the global variable stored on the global site setting.
Describe alternatives you've considered
No response
Additional context
No response
All reactions