WordPress.org

Forums

Newsletter
[resolved] Send variable from theme-options.php to theme.php (5 posts)

  1. Zarausto
    Member
    Posted 1 year ago #

    How can I send a variable from theme-options.pho to theme.php.

    Like if I want to use Custom Title:
    Type a custom Title: <input type="text" name="custom_title" />

    And get this value on theme.php?

    (I work with PHP don't need to be too specific)

    Really awesome plugin, thank you so much!

    https://wordpress.org/plugins/newsletter/

  2. Zarausto
    Member
    Posted 1 year ago #

    I've tried with #_SESSION, and put sesstion_start() on preview.php but it passes the variable empty null...

    Is it too hard?

  3. Stefano Lissa
    Member
    Plugin Author

    Posted 1 year ago #

    See the default theme: if the variable is named theme_aaa you have the $theme_options array with all the theme's variables.

  4. Zarausto
    Member
    Posted 1 year ago #

    Ok solved...

    People can use:
    theme-options
    <?php $controls->text('theme_YOURCHOICE', 20); ?>

    theme
    echo $theme_options['theme_YOURCHOICE'];

    You could document it better =)

  5. Stefano Lissa
    Member
    Plugin Author

    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Newsletter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.