How can we help?

If you are looking for support for our PokaTheme, this is the place!

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: wp_insert_post doesn’t work with reviews #17156
    Joseph Anderson
    Participant

    Need to clarify the sentence “When you click Update in the editor, the post looks the exact same.”

    What I mean to say is that, the database entry, and all the post details in the editor look the exact same.

    The only thing that’s different is there is no content being display on the frontned until you press “Update”.

    This should be easily replicable… I’ve tried it on multiple installations, and the result is always the same.

    in reply to: wp_insert_post doesn’t work with reviews #17132
    Joseph Anderson
    Participant

    It’s not saved as a draft. It’s published as any other post would be, but it seems something is triggering on the backend of PokaTheme to make the post be updated on the frontend. It displays as a blank post, with no content.

    When you click “Update” in the editor, the post looks the exact same. Even the database entry is the exact same. I studied every single element of this for hours, nothing changes the initial insert post code and the “Update” in the editor.

    After all the time looking around, I can only assume that something is not triggering on the backend of PokaTheme. Something that triggers when pushing “Update” manually, but not when doing it programmatically.

    I also experimented with doing wp_update_post after wp_insert_post, but it still doesn’t work.

    I’ve tried this with dozens of other custom post types on dozens of other themes, and it’s only PokaTheme that has this issue.

    in reply to: wp_insert_post doesn’t work with reviews #17106
    Joseph Anderson
    Participant

    I even tried doing something super basic…

    Like inserting a post with the post_title as “asdasd” and post_content as “asdasda” without any other strings. It still doesn’t work.

    The post simply will not show until I click “Update” in the editor itself, which defeats the purpose of adding posts programmatically.

Viewing 3 posts - 1 through 3 (of 3 total)