am I doing this admin menu correctly?
-
Using the codex and about 4 other websites, I have been able to piece together my first admin menu for my theme. I wanted to be able to fill in an area of a page by editing text in the admin area. I got my form and admin area all set up. when I press save, it saves the data to the database. Then I have pulled the info out of the database like so
$myrows = $wpdb->get_row( "SELECT * from wp_pizzasite_options where option_name = 'download text'" ); $myrows->option_value;
I have that code in a page template. is there a better way of getting the information?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘am I doing this admin menu correctly?’ is closed to new replies.