Wordpress 获取插件中的\u post\u meta返回错误值

Wordpress 获取插件中的\u post\u meta返回错误值,wordpress,Wordpress,我想在插件中使用get_post_meta,但它返回了错误的值 以下是我的代码: $wp_tags = array("{ID}","{title}","{music128}","{excerpt}","{content}","{author}","{short_url}","{full_url}","{tags}","{categories}"); $wp_subs = array( $post->ID, $post->post_title,

我想在插件中使用get_post_meta,但它返回了错误的值 以下是我的代码:

    $wp_tags = array("{ID}","{title}","{music128}","{excerpt}","{content}","{author}","{short_url}","{full_url}","{tags}","{categories}");
    $wp_subs = array(
    $post->ID,
    $post->post_title,
    $post_meta = get_post_meta($post->ID, 'music128',true),
    wp_trim_words($post->post_content, $excerpt_length, "..."),
    $post->post_content,
    get_the_author_meta("display_name",$post->post_author),
    wp_get_shortlink($ID),
    get_permalink($ID),
    $tags,
    $categories
    );
get_post_元结果为http://******.com/Music/shahravar97/Ebrahim20%20-20Deylar.mp3未找到此链接错误404
但原始url是http://******.com/Music/shahrivar97/Ebrahim%20Alizade%20%20-%20Sani%20Deylar.mp3

你确定吗?这一行:$post\u meta=get\u post\u meta($post->ID,'music128',true),将生成布尔值并将其插入数组中。这是第一个问题。第二,你能给我们看一下你的代码,把你的链接插入post_meta吗?请使用http://*********.com/,它更容易阅读。是的,我确定。我在帖子中的代码是
  • ,这个代码有效吗?显示有效的url?同样,请提供将这些值插入post meta的代码。类似于
    update\u post\u meta
    而不是
    get\u post\u meta
    yes的东西可以在post中工作,但不能在plugin中工作。有效url:404URL首先,我一开始就错了,我不知道为什么,我在数组中看到的是“==”而不是“=”。所以,这部分还可以。我发现url_编码有问题。您所提供的url是有效的,它的设置和获取与wordpress meta没有任何问题。我们需要看到更多,看到问题所在。