我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Wordpress API不会返回任何帖子

I need to fetch all the posts from my WordPress website (they are in the job_listing category). I tried using the API with this route wp-

json/wp/v2/posts?id=

json/wp/v2/posts?categories

The two URL returns me an empty array. The /post URL without parameters also returns me an empty array.

How can I handle it?

Thanks

近期文章

  • PHP mysql数据无法从上一个id中检索
  • Etisalat支付集成Woocommerce
  • Laravel会话/中间件/认证问题
  • 不正确的整数值:''对于第1行的列'idDepartment'
  • 在Magento 2.2.3中构建自定义支付网关
  • 我如何保存标记位置长lat到sql(javascript,php)
  • 如何防止catch中的自动显示pdo错误
  • 如何将命令参数发送到php文件
  • TypeError:class :: functionName()的返回值必须是/ Interface的实例,返回null
  • 成功提交表单信息后,如何重定向到正确的页面?
  • Maatwebsite Excel - 在地图中导出图像
  • PHP mysql定义了销售点
  • 只有最顶级的交换机才能在我的网站上运行
  • /php@7.0/pear')在第0行的Unknown中
  • reCaptcha v3跨浏览器
  • Sylius重定向到特定URL
  • 将<select>中的id保存到变量中
  • 如何更改brew PHP目录
  • 如何挂钩页面标题以在wordpress中过滤它
  • 尝试使用curl获取信息,但得到http错误

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华