Have re-published and problem persists.
Thank You, Jacob
]]>Antoine
]]>{id: 950, status: "publish", content: ""}
The response:
{
"code": "rest_invalid_param",
"message": "Invalid parameter(s): status",
"data": {
"status": 400,
"params": {
"status": "status[0] is not of type integer."
},
"details": {
"status": {
"code": "rest_invalid_type",
"message": "status[0] is not of type integer.",
"data": {
"param": "status[0]"
}
}
}
}
}
The weird part, is that when I create a new page and check the payload, the “status” is also sent as a string, but the publishing is successful.
Here is also the definition of the custom post type:
register_post_type( 'property',
array(
'labels' => array(
'name' => __( 'Properties' ),
'singular_name' => __( 'Property' ),
'add_new_item' => __( 'Add property' ),
'all_items' => __( 'All properties' ),
),
'has_archive' => true,
'public' => true,
'rewrite' => array('slug' => 'parceli'),
'show_in_rest' => true,
'supports' => array('editor', 'title', 'thumbnail'),
'menu_icon' => 'dashicons-post-status',
'map_meta_cap' => true,
'rest_controller_class' => 'WP_REST_Posts_Controller',
)
);
I tried disabling all the plugins – error persists. I have enabled logging to debug.log, but like I said – nothing comes up there. Using Chat GPT for help, it recommended me to use a few filters for debugging (rest_pre_dispatch, rest_pre_serve_request), but nothing gets outputted.
]]>Hope you can provide a solution, I have always scheduled posts, but after installing this plugin, my posts are missing the publish date, and i have to manually publish the post.
Could you kindly provide a work around this or a solution?
Thank you
MAGroup
]]>I have deactivated all WP plugins in case one of them is causing the problem but that made no difference.
Is anyone able to help me out here?
]]>I have come over from years of working with XOOPS.. followed by years of not working with websites at all (except Shopify.. where I was a guru- front line help getting users over hurdles) so.. while I’m experienced a bit.. WordPress does things differently and it’s taken me awhile to feel comfortable with the overall platform.
That being said- this plug in ( I keep wanting to call it an APP or Module ) is awesome. I’m particularly interested in the “Claim This Listing” feature for one of my sites.
The installation was a breeze.. not like XOOPS modules but pretty much exactly as WordPress Plug Ins- easy as clicking “install” and letting the script do it’s thing.
Customization has started.. I’ve added a horrendous number of sub groupings and it’s still humming away with ease.
I have only just started adding in data but that’s as easy as making a blog post.
All in all- two thumbs up and I am looking forward to taking this plug in to different sites for various purposes. If you are thinking of a “Directory” plug in.. I’d say- nothing better than this one and it’s got everything you’ll want.
]]>