简体   繁体   中英

How to get custom attributes and values on wordpress

how can i get two values on wordpress

`$kapidanGecer = $order->get_attribute( 'KapidanGecer' );
 $kacTane = $order->get_attribute( 'KacTane' );`

您应该能够对其进行调整以满足您的要求(应该在循环内使用):

<?php echo get_post_meta($post->ID,'meta_value_key',true); ?>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM