zacsto
Forum Replies Created
-
Thank you very much! Everything is working great now!
At the end of the DTD snippet is has the following code which I thought was adding in the advert_location functionality. I also tried swapping out all the advert_category for adverts_location but it broke the DTD plugin. FYI, I’m not a web developer but more a change something and see what happens.
add_filter( "adverts_form_load", function( $form ) { if( $form["name"] != "advert" ) { return $form; } foreach( $form["field"] as $key => $field ) { if( $field["name"] === "adverts_location" ) { $form["field"][$key]["type"] = "adverts_field_select_dependant"; $form["field"][$key]["options_callback"] = null; $form["field"][$key]["options"] = array(); $form["field"][$key]["dtd_use_taxonomy"] = "advert_location"; } } return $form; }, 9000 );The problems I’m having are both in the frontend area and in the admin area. I’d be happy to give you an admin account but I’d rather not post it on the open web if there’s another way to send it to you…
Screenshot of the Add Listing Page showing dropdown working
Screenshot of Preview Listing showing numbers for location
Screenshot of admin area showing loading symbol
Screenshot of DTD off and Location showing correctly
I’ve tried all MAL settings but here’s the one that makes the most sense to me.