ajengwidya
Forum Replies Created
-
Hi, @m4hd1bd
Based on my case, I also set the wp_set_object_terms() besides the ‘_directory_type’ meta. It works well on my end. Thank you!
Also, how to use Directorist’s action/filter hook? I try this:
add_action('atbdp_listing_updated', 'my_listing_update');
But nothing seems to work.Hi, @m4hd1bd
I successfully create new listing as I add new user. The problem is when I try to view the listing, the data doesn’t displayed even though I already store the post_type as ‘at_biz_dir’ as well the postmeta data. Please check: https://prnt.sc/AUvUnoZwKnC9
In order to display the data, I have to update the listing.
Did I miss some steps?
Hi, @m4hd1bd
Ok. I will try it and will let you know if I have more questions. Thank you!
Hi, @m4hd1bd
Will it be assumed as Directorist’s new listing if I define the post type as ‘at_biz_dir’?
Hi, @m4hd1bd
Thank you for the quick response!
Ok then. Actually, I want something like this:add_action("user_register", function($user_id) { //create a new listing (type 'at_biz_dir') using WP hook or Directorist hook (if any) });What are the hooks should I use to create the at_biz_dir post and the postmeta as well?