• Resolved Goharika

    (@goharika)


    Hi,
    I need help connected with creating pages, I am using also Beaver builder for editing
    with WP API I am creating app, which is allow users to create new pages, menus and etc. for their WP site, and in wordpress I am using Beaver to edit the pages, I don’t won’t to allow user to go to dashboard as it can be complex for users. So my problem is then I am trying to create new page with my application it doesn’t create or I want to edit already existing, the same problem. Before I have added Beaver this functionality was work, now it doesn’t. One of your support forums I find they are using Jetpack, but I am not sure that is the best solution. Because in this case I need to connect website with wordpress.com use oAuth2 and change everything.

    https://wordpress.org/plugins/json-rest-api/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    So my problem is then I am trying to create new page with my application it doesn’t create or I want to edit already existing, the same problem. Before I have added Beaver this functionality was work, now it doesn’t.

    This sounds like an incompatibility between the Beaver Builder theme and the REST API. You’ll want to work with the developers behind the Beaver Builder theme to ensure it’s fully compatible with the REST API.

    Thread Starter Goharika

    (@goharika)

    I have tested, it wasn’t Beaver problem, I am generally can’t create new page.
    I am using API second version http://v2.wp-api.org/reference/pages/#schema-content, As here in documentation says I need to send post request on pages directory. Here is my URL http://buildatourapp.com/wp-json/wp/v2/pages, here simple example that I am trying to post with postman {“title”:”Postman Testo”, “content”: “Heloo”}
    What ma I doing wrong?

    Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    here simple example that I am trying to post with postman {“title”:”Postman Testo”, “content”: “Heloo”}

    What response do you get in return?

    Are you making the request as an authenticated user?

    Thread Starter Goharika

    (@goharika)

    Yes I am using authentication. Return status 201 created, but when I am looking on admin panel there isn’t such page, even when I am trying to get json back with ID that gives me postman I see that title and content is empty.
    http://buildatourapp.com/wp-content/uploads/2015/11/GetRequest.png
    http://buildatourapp.com/wp-content/uploads/2015/11/PostRequest.png

    Also I want to mention that I am using Polylang language plugin and need to set language too for my page

    Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Return status 201 created, but when I am looking on admin panel there isn’t such page

    Can you access http://buildatourapp.com/wp-admin/post.php?post=839&action=edit?

    even when I am trying to get json back with ID that gives me postman I see that title and content is empty.

    […]

    Also I want to mention that I am using Polylang language plugin and need to set language too for my page

    Unfortunately, it’s difficult to debug this without having access to the codebase. My best guess is that it’s a plugin conflict of some sort.

    Thread Starter Goharika

    (@goharika)

    No I can’t access, link is opening all posts pages, but there isn’t such post.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WP API and Jetpack and Beaver Builder’ is closed to new replies.