adding echo get_option correctly
-
I have the following code, but I need to add a line of code from the WP admin to this, but can’t figure out how to do that.
I started off with this:
<?php $app_id = "echo get_option('appid');"; ?>
Then I tried to add the line of code from admin using:
$app_id = "echo get_option('appid');";
A bit too literal maybe, so I removed the semi-colon within the quotes:
$app_id = "echo get_option('appid')";
I’m running out of hair to pull out, so if anybody can help, that would be great.
Thanks.
- The topic ‘adding echo get_option correctly’ is closed to new replies.