Opened 9 years ago
Closed 9 years ago
#37119 closed defect (bug) (duplicate)
Taxonomies is not adding to post unless user is not loggeg in
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | Posts, Post Types | Keywords: | |
| Focuses: | Cc: |
Description
Using external script to insert posts (grabber)
<?php include('../wp-load.php'); include('../wp-admin/includes/taxonomy.php'); wp_insert_post(array( 'post_title' => $t['name'], 'post_type' => 'catalog', 'post_status' => 'publish', 'post_content' => $t['sdescr'], 'tax_input' => array( 'manufacturer' => $t['manufacteur'], 'cat_category' => $_GET['catid'] ) ));
Posts inserted with taxonomies (manufacturer, cat_category) if user who access script url is logged in, otherwise post will be inserted without taxonomies...
Change History (1)
Note: See
TracTickets for help on using
tickets.
Hello @dangerd512, welcome to our Trac!
Thanks for your report, we're already tracking this issue in #19373.