English 中文(简体)
口头表示:习俗现场显示两次
原标题:Wordpress: custom field display twice

我对我的言语有点 b。

当我增列一个习俗领域时,我没有麻风气,我需要拯救草案或出版,以了解最新情况。

在我节省了我的职位之后,习俗领域表现了两次。

name :   Steffi

name :   Steffi

帮助! 增 编

问题回答

我认为,你只需要改变该抽样守则中的变数:

<?php
    $cf_video =  video_code ;
    $video_meta = get_post_meta($post->ID, $cf_video, true);

    echo ($video_meta);
?>

http://monstertut.com/2007/06/wordpress-custom-field-template/“rel=”nofollow。 http://monstertut.com/2007/06/wordpress-custom-field-template/。

Hey guys,我找到了THE解决办法。

问题:

  • 习俗领域有两次。

  • 无Ajax/jQuery直观反馈。

如果你在文件<代码>功能>.php上工作,则确保你取消额外的细线休息。

尤其是你档案的顶部和底部...... 如果您有某种分界线,则您的xml就有一个错误:XML,或者在实体/代码开始时宣布案文。

我知道这是一个老的问题,但希望这将有助于其他人处理这个问题。

我个人发现,删除了关闭的php标签(?>)。 从我的职能结束起。 php案已经解决了这一问题。





相关问题
Wrap stray text in <p> tags

Wordpress issue.. how do I wrap stray text in P tags? Example: Before- <div class = "content"> <img src = "hello.jpg"/> <h1>Introduction</h1> Hello! this is ...

Using jQuery Plugins with Wordpress

Having a bit of trouble using jQuery plugins (Superfish, jQuery UI, etc) using Wordpress. Everything works fine in my plain non-Wordpress site, but Wordpress seems to conflict with JQuery. There must ...

WordPress Data Storage Efficiency

I ve been asked to review a WordPress plugin of sorts and try to find ways of making it faster. The premise of this plugin is basically to store a bunch of users and shifts and appointments and ...

Why can t I properly style a blockquote in Wordpress?

On the design I just created for my website, I have a blockquote styled with two quote images using the span technique in css: blockquote { background-image: url(images/openquote.jpg); background-...

How does the WordPress <!--nextpage--> tag actually work?

What happens? I m guessing that somehow the post or page is parsed before displaying, and then just split into two methods? I can t seem to find any documentation on how the underlying <?php ...

Wordpress Plug-ins: How-to add custom URL Handles

I m trying to write a Wordpress Plug-in but can t seem to figure out how you would modify how a URL gets handled, so for example: any requests made for: <url>/?myplugin=<pageID> will ...