WordPress.org

Forums

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

  1. ecsancho
    Member
    Posted 1 year 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 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.