Another question please.
If I want the same code to be in the listing submit and listing update page and to avoid additional lines. can I use the same code for 2 paths? like this:
It is possible to use only hook hivepress/v1/forms/listing_update. The hivepress/v1/forms/listing_submit hook inherits changes for the hivepress/v1/forms/listing_update
I tried the PHP snippet I try to stay with “1” and also change the number to “116” which is the number of the category, but it’s not helping. still, show “select category” when creating a listing.
Please try registering a new user and adding a listing, or finish adding the current listing and add a new one. The suggested snippet sets the category ID on creation, and the one you’re adding may be an existing draft.