【问题标题】:How to Display content from other website (on the same domain)? [closed]如何显示来自其他网站的内容(在同一域上)? [关闭]
【发布时间】:2016-12-18 22:54:27
【问题描述】:

我在我的网站http://thedripple.com 上使用 wordpress。 我只想在我的主站点的帖子上显示http://thedripple.com/products(安装了另一个wordpress)的帖子中的表格! 我该怎么做?

【问题讨论】:

标签: javascript php jquery wordpress


【解决方案1】:

因为它们可能在同一个域中:

<div id="posts"></div>

$('#posts').load('/products/hp-envy-spectre-xt #wp-table-reloaded-id-2-no-1');

您需要以某种方式拉入 css 以使其正确显示。 example:

【讨论】:

  • 我不能用 javascript (stackoverflow.com/questions/2828109/…) 做点什么吗,我只想显示表格而不是整个帖子!
  • 肯定行得通。你的 ID 会是静态的吗?
  • 我不擅长 javascript:\,关于 id,是的,它会是静态的!
  • 你到底想得到什么帖子
  • 假设我的主站点上有关于 HP Envy Spectre XT 的文章,所以我想显示来自thedripple.com/products/hp-envy-spectre-xt 的笔记本电脑的整个规格表以及与所有帖子类似的内容!!!
猜你喜欢
  • 1970-01-01
  • 2011-11-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-08-10
  • 2019-12-29
  • 2012-06-03
  • 1970-01-01
相关资源
最近更新 更多