Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter daveetasac

    (@daveetasac)

    Well, I still don’t quite understand how to accomplish this. Let’s see if I can be a little more clear.

    This is a single-site installation. In the backend, the theme has a custom meta-box in the functions.php that shows the store names in an ajax search box (notice a recent update changed ‘type’ to ‘post_type_ajax’ instead of select).
    Here’s that updated snippet of code:

    array(
    			'id' => 'offer_store',
    			'name' => __( 'Offer Store', 'couponxl' ),
    			'type' => 'post_type_ajax',
    			'post_type' => 'store',
    			'additional' => array(
    				'orderby' => 'title',
    				'order' => 'DESC',
    			),
    			'desc' => __( 'Select store this offer is related to.', 'couponxl' )
    		),

    This code is strictly used in the back-end for selecting the store a particular coupon will be related to; only the name of the store is shown. Example: My Store Name. I would like it, however, to show like this:
    My Store Name (123 Main St, Town, State 12345).

    So, I need to find out how to echo the address, city, state and zipcode in this ajax box, using the built-in array. I’m using Advanced Custom Fields to hold each store’s address information. Any further help is much appreciated.

    Thread Starter daveetasac

    (@daveetasac)

    Thanks for the reply, bcworkz! I’ll try that solution. =)

    Thread Starter daveetasac

    (@daveetasac)

    Unfortunately, no, I was unable to find a workaround for this. If anyone finds a solution, please post it. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)