Support » Fixing WordPress » Help with custom meta storage

  • Hi,

    I have a business directory with a post-type > business.

    I have also created a custom plugin which will be used by logged-in users.

    At the moment I have hard-coded the variable value for the custom plugin but I will need it to be brought from, and sent to the db.

    Each user will have a number brought from the db (the variable). This number will be updated in the plugin and sent back to the db.

    I think creating a new usermeta would be the best way to go but because each user will have a value for every business on the directory, I’m not sure how to create that kind of array.

    Just not finding any similar examples on the Google, could someone give me some pointers please.


Viewing 2 replies - 1 through 2 (of 2 total)
  • Stef


    I always think articles like this help guide any kind of db storage, whether it be custom or default.

    Could possibly guide your decision on how to post to it. Best of luck.

    Thanks yes, I read that earlier and it makes it very simple.

    The thing I can’t get my head around is how I can make a custom meta value work when there will need to be a value for every postID (of business type).

    Would I have to make a meta_key array of the postIDs with a value inside each one?

    • This reply was modified 10 months, 1 week ago by shaun21uk.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help with custom meta storage’ is closed to new replies.