我想检索标记值并将其设置为array.Here我检索值但是,我如何将该标记值设置为array.I想要没有插件。
<?php
$args = array( 'post_type' => 'campaign', 'posts_per_page' => 10 );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
the_title();
echo '<div class="entry-content">';
$pps=apply_filters('campaign_tag', get_post_meta($post->ID, 'campaign_tag', true));
echo $pps;
echo '</div>';
endwhile;
$type = 'post';
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
$args=array(
'post_type' => $type,
'post_status' => 'publish',
'posts_per_page' => 10,
'ignore_sticky_posts'=> 1,
'tag' => '',
'paged' => $paged
);
?>