jin88bet.one
Some of developers want to get term meta fields in php code and want to run query with it or create shortcode and get jetengine term meta field in it.
Very simple way to get term meta field created viak168app.babya Jetenigine Plugin.
ak168app.clubJetenigne term meta field value in php
Use it as simple term meta or ks168app.siteterm field.
Getting term field method “get_term_meta()ic88“.
And “$cat->term_id” is id of term.
‘phone’ is meta key created via jetengine.
ic88$phone = get_term_meta( $cat->term_id, 'phone', true );ic88This is full foreach loop that i use for categories
ic88$id = 12, 30, 55;
$categories = get_categories(array(
'include' => $id,
));
<?php foreach($categories as $cat){
$phone = get_term_meta( $cat->terlr88m_id, 'phone', true );
$media = get_term_meta( $cat->term_id, 'image', true );
lr88$img_atts = wp_get_attachment_image_src($media, 'full');
?>
<div class="col">
<div class="img">
<img src="<?php echo $img_atts[0];?>" alt="category image">
</div>
<div class="content">
<h3><?php echo $catlr88->name;?></h3>
<div class="button">
<a href="#" class="btn">
<img src="assets/images/Group 48.pnlr88g" alt="">
<span><?php echo $phone;?></span>
</a>
</div>
</div>
</div>
<?php } ?>op88Hope this help you to create a better website and solve your problem 🙂
si8888vGet Jetengine’s post/page Meta Field In Php
SEXXXXX-VNWas this article helpful?
YesNo


