WordPress.org

Ready to get started?Download WordPress

Forums

Is it possible to save random data to DB? (2 posts)

  1. ecsancho
    Member
    Posted 7 months ago #

    Greetings

    What I'm trying to accomplish is, Save some custom data settings to db from admin side then use it website side. For instance what Im looking for is

    Admin side:
    $CurrentFeatureImage = "test.jpg";
    saveMetaData($CurrentFeatureImage , "metaData_setting");

    Website side:
    $currImg = getMetaData("metaData_setting");

    Any suggestions please? Thanks!

  2. ecsancho
    Member
    Posted 7 months ago #

    I see there's add_post_meta() problem with that it depends on a post to exist in DB.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.