RError.com

RError.com Logo RError.com Logo

RError.com Navigation

  • 主页

Mobile menu

Close
  • 主页
  • 系统&网络
    • 热门问题
    • 最新问题
    • 标签
  • Ubuntu
    • 热门问题
    • 最新问题
    • 标签
  • 帮助
主页 / 问题 / 1564514
Accepted
BlackStar1991
BlackStar1991
Asked:2024-02-03 01:28:05 +0000 UTC2024-02-03 01:28:05 +0000 UTC 2024-02-03 01:28:05 +0000 UTC

WordPress 如何将媒体文件传输到新的WP?

  • 772

上有两个网站WordPress。一个旧的,您需要从中获取所有媒体文件(图像/文档)并将其传输到一个新的,其中您已经拥有自己的帖子和媒体文件。我的行动。

  1. 我从旧网站获取了整个类别uploads并将其上传到新网站。
  2. 我从表中导出了所有值wp_posts,post_type=attachment 然后用我自己的值替换了这些值并将它们导入到新站点自己的数据库中。
INSERT IGNORE INTO `wp_posts` (`ID`, `post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_title`, `post_excerpt`, `post_status`, `comment_status`, `ping_status`, `post_password`, `post_name`, `to_ping`, `pinged`, `post_modified`, `post_modified_gmt`, `post_content_filtered`, `post_parent`, `guid`, `menu_order`, `post_type`, `post_mime_type`, `comment_count`) VALUES
(768, 1, '2019-10-07 14:13:58', '2019-10-07 14:13:58', '', 'Refugee Integration & Economic Contributions', '', 'inherit', 'closed', 'closed', '', 'refugee-integration-economic-contributions', '', '', '2019-10-07 14:13:58', '2019-10-07 14:13:58', '', 767, 'https://rcusa.websitetesturl2.com/wp-content/uploads/2019/10/Refugee-Integration-Economic-Contributions.pdf', 0, 'attachment', 'application/pdf', 0),
(770, 1, '2019-10-07 14:18:29', '2019-10-07 14:18:29', '', 'At A Glance - Refugee Integration and Economic Contributions', '', 'inherit', 'closed', 'closed', '', 'at-a-glance-refugee-integration-and-economic-contributions', '', '', '2019-10-07 14:18:29', '2019-10-07 14:18:29', '', 769, 'https://rcusa.websitetesturl2.com/wp-content/uploads/2019/10/At-A-Glance-Refugee-Integration-and-Economic-Contributions.pdf', 0, 'attachment', 'application/pdf', 0);

它正常导入,需要更改所需表中的ID...但在新站点中我仍然看不到它们,Media Library为什么?我做错了什么,为什么它们没有显示在库中并且无法选择或分配给其他帖子?

在此输入图像描述

wordpress
  • 1 1 个回答
  • 28 Views

1 个回答

  • Voted
  1. Best Answer
    SeVlad
    2024-02-03T01:47:07Z2024-02-03T01:47:07Z

    我究竟做错了什么

    所需要的只是导入。

    • 如果只有媒体文件,那么标准的就足够了。
      或者第二种选择是手动上传到服务器并使用插件在媒体库中注册。例如媒体同步

    • 如果它链接到现有记录,那么它是导入插件。

    通过你的行为,你很可能破坏了数据库。

    • 1

相关问题

  • woocommerce。您需要显示与特定类别相关的所有标签

  • 如果无法通过 php 文件在 Wordpress 中添加占位符,如何添加?

  • wp_head() 不工作

  • WooCommerce。如何在卡片中显示特定产品的标签?

  • 如何将所需的“meta_query”参数从 WP_Query 传递给 $_POST?

  • OpenServer上的网站问题[关闭]

Sidebar

Stats

  • 问题 10021
  • Answers 30001
  • 最佳答案 8000
  • 用户 6900
  • 常问
  • 回答
  • Marko Smith

    我看不懂措辞

    • 1 个回答
  • Marko Smith

    请求的模块“del”不提供名为“default”的导出

    • 3 个回答
  • Marko Smith

    "!+tab" 在 HTML 的 vs 代码中不起作用

    • 5 个回答
  • Marko Smith

    我正在尝试解决“猜词”的问题。Python

    • 2 个回答
  • Marko Smith

    可以使用哪些命令将当前指针移动到指定的提交而不更改工作目录中的文件?

    • 1 个回答
  • Marko Smith

    Python解析野莓

    • 1 个回答
  • Marko Smith

    问题:“警告:检查最新版本的 pip 时出错。”

    • 2 个回答
  • Marko Smith

    帮助编写一个用值填充变量的循环。解决这个问题

    • 2 个回答
  • Marko Smith

    尽管依赖数组为空,但在渲染上调用了 2 次 useEffect

    • 2 个回答
  • Marko Smith

    数据不通过 Telegram.WebApp.sendData 发送

    • 1 个回答
  • Martin Hope
    Alexandr_TT 2020年新年大赛! 2020-12-20 18:20:21 +0000 UTC
  • Martin Hope
    Alexandr_TT 圣诞树动画 2020-12-23 00:38:08 +0000 UTC
  • Martin Hope
    Air 究竟是什么标识了网站访问者? 2020-11-03 15:49:20 +0000 UTC
  • Martin Hope
    Qwertiy 号码显示 9223372036854775807 2020-07-11 18:16:49 +0000 UTC
  • Martin Hope
    user216109 如何为黑客设下陷阱,或充分击退攻击? 2020-05-10 02:22:52 +0000 UTC
  • Martin Hope
    Qwertiy 并变成3个无穷大 2020-11-06 07:15:57 +0000 UTC
  • Martin Hope
    koks_rs 什么是样板代码? 2020-10-27 15:43:19 +0000 UTC
  • Martin Hope
    Sirop4ik 向 git 提交发布的正确方法是什么? 2020-10-05 00:02:00 +0000 UTC
  • Martin Hope
    faoxis 为什么在这么多示例中函数都称为 foo? 2020-08-15 04:42:49 +0000 UTC
  • Martin Hope
    Pavel Mayorov 如何从事件或回调函数中返回值?或者至少等他们完成。 2020-08-11 16:49:28 +0000 UTC

热门标签

javascript python java php c# c++ html android jquery mysql

Explore

  • 主页
  • 问题
    • 热门问题
    • 最新问题
  • 标签
  • 帮助

Footer

RError.com

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

帮助

© 2023 RError.com All Rights Reserve   沪ICP备12040472号-5