【问题标题】:Wordpress custom post upload post_parent is 0Wordpress 自定义帖子上传 post_parent 为 0
【发布时间】:2016-06-12 20:11:40
【问题描述】:

我正在使用自定义帖子类型的 wordpress 自定义文件上传器,但我上传的图片不存在 post_parent;

上传后我会显示 phpmyadmin 和我上传的文件 post_parent 0

我该怎么做才能解决这个问题

【问题讨论】:

    标签: wordpress file-upload upload


    【解决方案1】:

    我通过更改thickbox参数解决了这个问题

    <input type="button" class="tosf-upload-button" value="Upload Image" onclick="tb_show('','media-upload.php?post_id=<?php echo $post->ID;?>&type=image&TB_iframe=1&width=753&height=242');" />
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-03-16
      • 2015-02-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-29
      相关资源
      最近更新 更多