Title: First plugin help please
Last modified: August 18, 2016

---

# First plugin help please

 *  Resolved [teejayuu](https://wordpress.org/support/users/teejayuu/)
 * (@teejayuu)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/first-plugin-help-please/)
 * I am writing my first plugin and everything’s working fine. I am now writing 
   an admin panel for it following the instructions in the codex, but have hit a
   problem. I have added the options to the database but am struggling to read them
   into the panel. This is the code
    `<h2>TJs Options</h2> <fieldset name="set1"
   > <legend><?php _e('Display Name', 'Localization name') ?></legend> <table><tr
   > <td><b>Display Name</b></td><td> <input type="text" name="tj_sn_title" value
   =<?php get_option('tj_sn_name') ?> /></td> </tr></table> </fieldset> Using this
   code displays the legend the title and the text box containing a forward slash–
   when it should contain the phrase Test Text (stored in the database). I thought
   the get_option($option) hook retrieved data from the options table. What am I
   doing wrong

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [teejayuu](https://wordpress.org/support/users/teejayuu/)
 * (@teejayuu)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/first-plugin-help-please/#post-504114)
 * Sorry, I forgot to echo the get_option($option) hook, so this is partly working.
   I am now only getting the first word of the phrase. Any ideas?
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/first-plugin-help-please/#post-504199)
 * Could be that you didn’t enclose the ‘value’ attribute in quotes:
 * `value="<?php echo get_option('tj_sn_name') ?>" />`
 *  Thread Starter [teejayuu](https://wordpress.org/support/users/teejayuu/)
 * (@teejayuu)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/first-plugin-help-please/#post-504357)
 * Thabks Kafkaesqui – all sorted

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘First plugin help please’ is closed to new replies.

## Tags

 * [Get_Option](https://wordpress.org/support/topic-tag/get_option/)
 * [option](https://wordpress.org/support/topic-tag/option/)
 * [retrieve](https://wordpress.org/support/topic-tag/retrieve/)

 * 3 replies
 * 2 participants
 * Last reply from: [teejayuu](https://wordpress.org/support/users/teejayuu/)
 * Last activity: [19 years, 2 months ago](https://wordpress.org/support/topic/first-plugin-help-please/#post-504357)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
