I have created a custom post type called job. Posts are generated with wp_insert_post(), and […]
Tag: wp-insert-post
tax_input argument for wp_insert_post()
I’m trying to insert custom taxonomies using wp_insert_post() and the tax_input argument, but it doesn’t […]
wp_insert_post bulk import 500 server error
I am working on a WordPress import tool, where I use a custom city table […]
Do I need to deal with WordPress SQL Injection
Do I need to prepare strings against MySQL Injection when inserting into the database using […]
Post author for revision not being set on update/insert
I’m trying to programmatically update a custom-type post with revisions enabled via form, and everything […]
Conditionally set post_content in wp_insert_post
Is it possible to conditionally set the post_content in wp_insert_post? Im using a foreach to […]
What is considered the post’s creation date for wp_insert_post?
I have the following hook which sets a default “hotness” for a post. For context, […]
wp_insert_post featured image from library
I know there are a lot of posts about it, but I don’t want to […]
How do I set a featured image (thumbnail) by image URL when using wp_insert_post()?
While looking through the function reference entry for wp_insert_post(), I noticed that there’s no parameter […]
Use of wp_insert_post and parameters
I’ve JUST started using WordPress..i’m trying to add posts to WordPress using php and i […]
No More Posts Available.
No more pages to load.