New to everything - WordPress, HTML, shortcode, JavaScript, CCS, wpDataTables.
My issue is: I want to vary the headings and labels on the "detail" page for the master table records based on one of the field values and using shortcode for the conditional logic. Something like:
New to everything - WordPress, HTML, shortcode, JavaScript, CCS, wpDataTables.
My issue is: I want to vary the headings and labels on the "detail" page for the master table records based on one of the field values and using shortcode for the conditional logic. Something like:
[if %fieldname1% = "TestValue1"]
<h4>Heading One</h4>
Label 1: %fieldname2%
Label 2: %fieldname3%
[/if]
[if %fieldname1% = "TestValue2"]
<h4>Heading Two</h4>
Label 3: %fieldname2%
Label 4: %fieldname3%
[/if]
The above obviously doesn't work, but I have also tried:
%fieldname1% == "TestValue1"
"%fieldname1%" = "TestValue1"
"%fieldname1%" == "TestValue1"
What is the format I need to use for the conditional statement?
Hello David
I am sorry to disappoint you, but unfortunately something like this is not possible with the plugin's built-in features.
Our developers will be looking at expanding Master-Detail functionalities, but at the moment it can only work as described in our documentation.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables