drau89457 2019-02-22 00:39
浏览 45

解密网站的Wordpress REST API比过去100更早发布

I have a decoupled web site, and I'm using WordPress REST API to get the Header, Featured Image, etc from any other WP site link that I'm targeting.

In my research I see a lot of people asking how to get more than the limited 100 last posts, but what I am trying to do is get only one post at a time that may be older than the last 100.

Another way to look at it is I am targeting only one post, and if I can only grab all posts, and find that one in the batch, that would be ok too.

If I am using a post that is within the last 100 posted on the WP site, I have no problem, it's only when a post I'm using is older than that.

I am using the Requests package for PHP to call the WP REST API.

Does anyone know how I can get posts older than the last 100 from a WP site on my decoupled site? I don't really think it has anything to do with using Requests PHP or JSON, JQuery or any of the other languages to do it.

Any help would be very much appreciated.

Thanks

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 Vue3 大型图片数据拖动排序
    • ¥15 划分vlan后不通了
    • ¥15 GDI处理通道视频时总是带有白色锯齿
    • ¥20 用雷电模拟器安装百达屋apk一直闪退
    • ¥15 算能科技20240506咨询(拒绝大模型回答)
    • ¥15 自适应 AR 模型 参数估计Matlab程序
    • ¥100 角动量包络面如何用MATLAB绘制
    • ¥15 merge函数占用内存过大
    • ¥15 使用EMD去噪处理RML2016数据集时候的原理
    • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大