AdvancedCustomFields / AdvancedCustomFields/acf

Mass Post Creation with Automated Field Creation & Population Possibility?

Open
#157 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
945
Forks
197
PR merge metrics
No merged PRs in 30d

Description

I've currently written a PHP script which generates near 1M posts for WP from my db, to an import file, with page info as in post title, content, image etc.

Now the question is, would it be possible to automatically generate a given set of acf fields, then automatically populate them within the creation loop for the import file? If so, how would population be done, ie: with having repeater fields, images, text fields? etc - All while keeping relationship data between everything?

Having nearly 1M posts just doesn't allow for any type of "wp_insert_post" function within a loop...

Thoughts / Suggestions?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the PHP import script and the wp_insert_post loop described in the issue, then review how ACF fields, repeaters, images, and relationships are represented during post creation. Done would mean a documented, scalable approach for generating and populating the requested fields across nearly 1M posts while preserving relationship data.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend, database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.