gutterboy
Member
Posted 7 years ago #
Hey guys,
I've wrote a script to input posts into WP in bulk; but I'm stuck on what to do to create the permalink? I've looked through the coding but still find it rather confusing on what code exactly I need to execute to create the permalink.
Any help?
Thanks a lot!
gutterboy
Member
Posted 7 years ago #
Can anyone point me in the right direction please?
WordPress doesn't store the permalinks in the database at all. The permalink structure stored in the database (wp_options table) is used to parse the incoming request and prepare a query to fetch posts that match the structure.
So if you're inserting posts directly to the database, you shouldn't need to worry about permalinks.
gutterboy
Member
Posted 7 years ago #
Hmmm........ I must be thinking of something else then; I'm talking about the URL it creates & inserts into the "posts" table in the "guid" section.
Thanks for the help. :)