0

I need call a string from $_POST["m_giambellino"], etc... (see down), saved in database of wordpress:

if ($_POST["send"] == "Save")

    {

        update_option("mese_giambellino", $_POST["m_giambellino"]);
        update_option("giorno_giambellino", $_POST["g_giambellino"]);
        update_option("mese_teramo", $_POST["m_teramo"]);
        update_option("giorno_teramo", $_POST["g_teramo"]);
        update_option("mese_solari", $_POST["m_solari"]);
        update_option("giorno_solari", $_POST["g_solari"]);

        echo "Evento/i salvati con successo!";

    }

into a theme (for example: <div><?php get_$_POST["m_giambellino"] ?></div>).

How can I do it?

1 Answer 1

1

Maybe like this

get_option( "mese_giambellino" );

This retrieves what you saved with update_option()

More about WP options you can read here (http://codex.wordpress.org/Options_API)

2
  • I've an another question: i'm looking a valua simliar ":contains" but that i can find a specific number and not the specific number in a variable digits number... (for example: contains('2')...it will look number that contain number 2 (so, 2, 22, 24, 25...) and it make error...can you help me?
    – user12932
    Commented Jul 22, 2013 at 14:53
  • @user12932 where do you search this number? Commented Aug 12, 2013 at 12:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.