Relative Content

Tag Archive for wordpresswordpress-rest-api

Retrieving Deleted Scheduled Posts via WordPress REST API

I’ve been using a Python script to fetch and modify posting day of scheduled posts in WordPress via the REST API with the following URL:https://{domain}/wp-json/wp/v2/posts?per_page=100&post_status=future&post_type=post&orderby=date&order=asc
This script worked perfectly until a few days ago. Recently, it started retrieving posts that I had previously deleted, and these posts do not appear in the trash nor are they listed under the future post status in the WordPress admin. But After using this script, this ghost post appear from somewhere…

WordPress meta_query seems to be ignoring any values that were set as defaults

I hope you can help me see what’s wrong here! I am finding that when I create new posts of a custom post type with a custom meta key, unless I actively click that particular meta option when creating the post, the post doesn’t appear in meta_query filters. If I just create a new post of that type but don’t click anything, so the value is left as the registered default, it’s ignored.

WordPress: How to send data to client side from new table

I have a new table (RuleCalendar). This table is associated to the products (Woocommerce) and I want to show the data in the content-product from the new table. The client will select some information and I need to calculate in the server side.