Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

holyxiaoxin on "Embedding PHP dictionaries in Post"

$
0
0

Problem: I have a complex dictionary
eg: {"numberOfQuestions":"5", "question1":{"question":"how many oranges are there?","questionType":"multiple","option1":"1","option2":"2","option3":"3"},......} (you get what i mean)

that i need to store in the database.

I was thinking of using postmeta to piggieback posts that would be stored in the database. But since postmeta only allow only key=>value pairs, and dictionaries are more complicated, how should i go about it? Or is there any way to send my complex dictionaries over to the database? I would love to explore any options. Thank you.

TLDR: How to embed complex dictionaries into key=>value post meta?


Viewing all articles
Browse latest Browse all 8245

Trending Articles