WordPress-Simple-Fields icon indicating copy to clipboard operation
WordPress-Simple-Fields copied to clipboard

Add shortcodes

Open bonny opened this issue 12 years ago • 4 comments

Something like:

most basic: [simple_fields_value slug=my_text_field]

with options: [simple_fields_value slug=my_text_field numInset=0 post_id=341] though: security issue with getting values from any post_id?

It's easy to do with "simple" fields like textarea, but what about the Google Map extension for example? Option for "type of output" so different fields can have different outputs?

bonny avatar Aug 30 '12 11:08 bonny

Support for shortcodes would be really nice! A big +1 from me on this one. :)

samface avatar Apr 03 '13 12:04 samface

it's pretty easy to do, so maybe for next update. however, can you give any example on when/how you would/want to use it? right in the content, or in widgets, or where?

bonny avatar Apr 07 '13 15:04 bonny

In content foremost, even if it would be nice to have support for it in widgets as well.

Imagine for example a contact page where we have the address info in the content. Imagine being able to add simple fields to the contact page where we put the address info and replace the address info in the content with shortcodes that refers to the added simple fields. The point of this is that we now have contact info that can be reused anywhere but only edited at one place. Neat, huh? :)

samface avatar Apr 08 '13 06:04 samface

hm, I think I understand what you're looking for. sounds smart and useful!

bonny avatar Apr 08 '13 07:04 bonny