• Resolved cybershot

    (@cybershot)


    I am trying to make an admin page the correct way. I can see the options have updated in the database. So I know my array of options are working. but I can’t figure out how to get the options back out on the page. I followed a tutorial that said to use the variables like so

    <?php echo $ftlv5_welcome_message; ?>

    the tut said to add this code in the head section of my page

    <?php
    global $options;
    foreach ($options as $value) {
        if (get_settings( $value['id'] ) == FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
    }
    ?>

    To make it easier, here is a link to the tutorial.

    https://forthelose.org/how-to-create-a-theme-options-page-for-your-wordpress-theme

    This is the code I used word for word except I have changed the options array to fit my needs for my template. I am now trying to figure out how to get the values back on the page.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘help with my admin page code’ is closed to new replies.