想知道是否有人知道在使用:get\\u post\\u custom时如何获取要渲染的切换短代码
<?php
$post_customs = get_post_custom();
//$post_customs = the_sub_field(\'project_items\');
if(isset($post_customs["project_items"]) && count($post_customs["project_items"]) > 0) {
$project_items = $post_customs["project_items"][0];
$projectItems = explode(":",$project_items);
?>
<?php if(count($projectItems) > 1) {
$totalProjectItems = $projectItems[1];
for($i = 0; $i < $totalProjectItems; $i++) {
?>
<?php $pro_item_post = get_post($post_customs["project_items_".$i."_choose_project_item"][0]); ?>
调用内容时使用:
<aside class="one_half last">
<?php echo $post_customs["project_items_".$i."_edit_proposal_item"][0]; ?>
</aside><!--/.one_half -->
这会呈现出内容区域内的短代码,即:“[切换标题=“测试”]内容”,而不是将其实际呈现为切换。任何帮助都将不胜感激。