wp_add_object_terms cant recognize a post ID

With: wp_add_object_terms( $cpt_dates_post_ID, intval($manifestation_insert_id), ‘cpt_dates_postID’); You’re actually saying “Add a cpt_dates_postID term with ID intval($manifestation_insert_id) to the CPT with ID $cpt_dates_post_ID“. That won’t work, because intval($manifestation_insert_id) is the ID of: another post (from another CPT, freshly inserted with […] Not the ID of an existing $cpt_dates_post_ID term entry. The reason why these 2 work: wp_add_object_terms( … Read more

Registering custom taxonomy using reserved terms

That’s because some terms are reserved by WordPress core and shouldn’t be used as custom slug. However, WordPress core itself doesn’t check within register_taxonomy function whether a developer has used those reserved terms or not. It’s up to the developers to read the documentation and implement accordingly. These core functions are low level implementations, so … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)