Opened 10 years ago
Closed 10 years ago
#37119 closed defect (bug) (duplicate)
Taxonomies is not adding to post unless user is not loggeg in
| Reported by: | dangerd512 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Posts, Post Types | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hello @dangerd512, welcome to our Trac!
Thanks for your report, we're already tracking this issue in #19373.