Conditional visibility of field/tan and rendering of shortcodes
-
Making fields/tabs only visible to listing owners/authors. I am aware of the general conditional fields options. However, I have been trying to hide specific tab(s) or field(s) so that they’re only viewable to the listing owner. I’m sure I’m missing it, but haven’t been able to find an option using conditional fields or the short code generator to make this happen.
Rendering of shortcode content in fields which don’t have the specific option to render media, etc. Example: Let’s say I have a multiselect field with a key of “badge” with the following sample options/values:
[wpfd_single_file id=”233″] : Label1
[wpfd_single_file id=”238″] : Label2I am able to display the properly-rendered shortcode for the selected labels/options in a separate tab with a geodirectory shortcode like this: [gd_post_meta key=”badge” show=”value-raw” font_size=”0″]
However, if I simply create a tab for the “badge” field itself, only the labels display in the tab (“Label1” etc.), not the actual values/rendered shortcode. Is it possible to show shortcodes in a field directly in it’s corresponding tab without having to create a separate shortcode tab?
Dynamically populating values in shortcode and rendering in front end. Example: I would like to have a multiselect value populate another field or tab value dynamically. Specifically, building on the multiselect example above, would it be possible to have something like this:
Multiselect field
Value : Label = 233 : Label1
Value : Label = 238 : Label2Then, there would be another separate field or tab that would have a default value of “[wpfd_single_file id='{ }’]”. When a user selected “Label1” the value of “233” is entered into the default value and the short code is rendered dynamically on the front end. I have used Directories Pro with other directory sites and it has this option, so I know it’s possible.
Thanks for your help!
- You must be logged in to reply to this topic.