Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author julien731

    (@julien731)

    I don’t understand what you need. Could you please specify.

    Thread Starter mabuzir

    (@mabuzir)

    I create taxonomy using wpas_add_custom_taxonomy();

    I need read all taxonomy with terms in this taxonomy

    thanks

    Plugin Author julien731

    (@julien731)

    Still not sure what you need. Do you want to get those terms for displaying them on the front-end? What do you need to do? If you used wpas_add_custom_taxonomy() then the custom fields values are automatically displayed in the ticket details.

    Thread Starter mabuzir

    (@mabuzir)

    I create taxonomy then add terms
    the terms is ( Sales , Support )
    I need the ticket assign to sales man when user submit ticket with Sales Option and Support option to Support man

    I need to read this option.
    Thanks

    Plugin Author julien731

    (@julien731)

    This is actually managed just like any other taxonomy. You can use all WordPress functions to retrieve taxonomies terms. get_the_terms() might be what you’re looking for.

    Thread Starter mabuzir

    (@mabuzir)

    Ok, Thanks

    Thread Starter mabuzir

    (@mabuzir)

    Hi Julien,
    How I can get last insert Ticket with taxonomy ?

    Thanks

    Plugin Author julien731

    (@julien731)

    This should do the trick:

    $tickets = wpas_get_tickets( 'open', array(
    	'tax_query' => array(
    		array(
    			'taxonomy' => 'your_taxonomy_name',
    			'field'    => 'slug',
    			'terms'    => 'your_term_slug',
    		),
    	),
    	'orderby'   => 'date',
    	'order'     => 'DESC'
    ) );

    This should get you the open tickets with your taxonomy term. They are ordered by descending date so you just need to keep the first one (the most recent).

    Thread Starter mabuzir

    (@mabuzir)

    Thanks For You Sooooo much

    Plugin Author julien731

    (@julien731)

    Don’t forget the 5* rating then ??

    Cheers

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘get all taxonomy’ is closed to new replies.