Как вывести произвольное поле на страницу плагина wp favorite post?
Здравствуйте у меня не получается вывести произвольное поле созданное в плагине Custom Field Suite
в страницу с закладками (wp favorite post ) на другие страницы выводит а туда не хочет очень нужно.
вот код вывода произвольного поля
<?php echo get_post_meta($post->ID, "icon", true); ?>
код страницы плагина wp favorite post
<?php
$wpfp_before = "";
if (!empty($user)) {
if (wpfp_is_user_favlist_public($user)) {
$wpfp_before = "$user's Favorite Posts.";
} else {
$wpfp_before = "$user's list is not public.";
}
}
if ($wpfp_before):
endif;
if ($favorite_post_ids) {
$favorite_post_ids = array_reverse($favorite_post_ids);
$post_per_page = wpfp_get_option("post_per_page");
$page = intval(get_query_var('paged'));
$qry = array('post__in' => $favorite_post_ids, 'posts_per_page'=> $post_per_page, 'orderby' => 'post__in', 'paged' => $page);
// custom post type support can easily be added with a line of code like below.
// $qry['post_type'] = array('post','page');
query_posts($qry);
?>
<div class="app-doc-panel">
<?php
while ( have_posts() ) : the_post();
?>
<div id="app-icon-<?php echo "". get_the_id() ;?>" class="app-window-icon option animated "aria-hidden="true"></div>
<?php
endwhile;
?>
<div id="app-icon-app-store" class="app-window-icon option animated fa fa-th-large"aria-hidden="true"></div>
</div>
<div class="app-window based-hiden" id="app-window-app-store">
<div class="app-window-title">App-store<li class="exit"><div class="exit-window fa fa-window-close"></div></li><li class="max"><div class="maximaze-window fa fa-window-restore"></div></li><li class="max-2"><div class="maximaze-window-2 fa fa-window-maximize"></div></li><li class="min"><div class="minimaze-window fa fa-window-minimize">-</div></li></div>
<div class="app-window-content"><iframe src="http://localhost/wp/?page_id=45" frameborder="0" width="100%" height="100%"></iframe></div>
</div>
<?php
while ( have_posts() ) : the_post();
?>
<div class="app-window based-hiden" id="app-window-<?php echo get_the_id() ;?>">
<div class="app-window-title"><?php echo get_the_title() ;?><li class="exit"><div class="exit-window fa fa-window-close"></div></li><li class="max"><div class="maximaze-window fa fa-window-restore"></div></li><li class="max-2"><div class="maximaze-window-2 fa fa-window-maximize"></div></li><li class="min"><div class="minimaze-window fa fa-window-minimize">-</div></li></div>
<div class="app-window-content"><?php echo get_the_content() ;?></div>
<?php echo get_post_meta($post->ID, "icon", true); ?>
</div>
<?php
echo "</li>";
endwhile;
//echo "</ul>";
wp_reset_query();
} else {
$wpfp_options = wpfp_get_options();
}
wpfp_cookie_warning();