D
D
daniyalov2017-08-17 20:53:07
JSON
daniyalov, 2017-08-17 20:53:07

How to create wordpress post from SQL table with date in JSON?

the table contains:
- entry id
- category slug
- json data
question: how to create entries in the wordpress database using queries from the current database?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WordPress WooCommerce, 2017-08-17
@daniyalov

Make a request through $wpdb to the desired table or database.
Then start the cycle. Get JSON. Make decode_json into array.
And then insert posts from the array through wp_isert_post.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question