2013-02-07, 20:04:29
@shawn, thanks , You'd think I'd know my own plugins ...
@yojoe, you can use my other plugin GS_Shortcodes plugin.
Create a file shortcodes.php in your theme folder and add the following code
you can then use the shortcode
When editing pages.
WHen setting up a settings table I usually set it to a max records of 1.
Add all the fields and then just edit that 1 record.
@yojoe, you can use my other plugin GS_Shortcodes plugin.
Create a file shortcodes.php in your theme folder and add the following code
Code:
function getSetting($atts){
extract(shortcode_atts(array(
"name" => ''
), $atts));
// change this line to your table and record number.
$records=DM_getRecord('settings', '0');
return $records[$name];
}
add_shortcode('setting','getSetting', '[setting name="" /]');
you can then use the shortcode
Code:
[setting name="" /]
When editing pages.
WHen setting up a settings table I usually set it to a max records of 1.
Add all the fields and then just edit that 1 record.