我已经安装了"contact- Form -7“插件,并使用"Contact Form save”将数据保存在数据库()中。
此外,我还在移动应用程序中创建了一个具有相同字段的表单。我使用的API是"WordPress REST API (Version 2)“()。
现在我的问题是,我想使用"WordPress REST API (版本2)“保存移动表单数据,并在Contact ->提交页面的wp-admin中显示。有什么好的建议吗?
我正在建立一个自我测试项目,它可以同时从一个问题列表中给出10个问题。我希望每次我开始测试时,这10个问题应该是不同的。前端是反应的,后端是WordPress,使用WordPress API.
以前,我通过实现一个orderby=rand在查询中使用了
<?php
/**
* Plugin Name: REST API - Post list randomize
* Description: Randomize the content list in REST API passing `orderby=rand` as parameter.
* Version: 1
我刚刚更新到WordPress 5.5,并在下面得到错误的调试模式。
rest_validate_value_from_schema was called incorrectly. The "type" schema keyword for [0] can only be one of the built-in types: array, object, string, number, integer, boolean, and null. Please see Debugging in WordPress for more information.
我正在使用自定义端点创建
我正在使用Java库将Wordpress JSON解析为JackSON类。可以在以下链接中看到JSON:
我已经能够获得带有一些节点的帖子数组。然而,我无法理解如何获取每个帖子的类别和标签列表。
我当前的对象类是:
public class WpJson {
public int found;
public List<Post> posts;
}
public class Post {
public int ID;
public String date;
public String modified;
public String title;
public String UR
我对Gatsby,React和GraphQL还是个新手,所以我只是想在走错路之前和社区确认一下……
WooCommerce REST API (通过WordPress REST API)是否可能成为Gatsby的电子商务集成?如果是,是否可以使用GraphQL查询WooCommerce API (类似于使用gatsby-source-wordpress插件查询WordPress REST API )?仅仅使用WordPress REST API就可以完成这一切吗?
如果有人将WooCommerce与Gatsby集成在一起(或者知道Gatsby电子商务解决方案工作得更好),我很想了解它!
在我的Wordpress站点中,添加或编辑帖子时会出现此问题。
Notice: register_rest_route was called incorrectly. REST API routes must be registered on the rest_api_init action. Please see Debugging in WordPress for more information. (This message was added in version 5.1.0.) in /project/wp/wp-includes/functions.php on line 5167