Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #59215


Ignore:
Timestamp:
08/27/2023 08:18:38 AM (15 months ago)
Author:
sabernhardt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #59215

    • Property Keywords changes-requested removed
    • Property Component changed from General to Taxonomy
  • Ticket #59215 – Description

    initial v1  
    1  wp_set_post_terms( $post_id, $post_categories, 'category', $append ); category is being passed staticky . so wp_set_post_categories is not working to map custom category with customer post type. it is not making any entry for custom post type in  the table wp_term_relationships.
     1`wp_set_post_terms( $post_id, $post_categories, 'category', $append );` category is being passed staticky. so `wp_set_post_categories` is not working to map custom category with custom post type. it is not making any entry for custom post type in the table `wp_term_relationships`.