Jump to content

Wordpress: Shortcodes and varibles


ankhmor

Recommended Posts

Is there a way to put something like a shortcode in your post or page and then to have that put in a variable?

Example:

lets say u put [hello yes=5] into a post

with the shortcodes right now i would have to write a function that would return something.

But is there a way to get this information into a variable? lets say like $hello = array('yes' => 5) or just $hello = 'yes,5'?

Link to comment
https://forums.phpfreaks.com/topic/172975-wordpress-shortcodes-and-varibles/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.