I’ve found the problem, why it’s not working with the categories.
I don’t know why, but when creating a post over the API, the post is published before the category is correctly set.
Now, I’m creating drafts (already with correct category). With a second PUT-Request I set the status to “publish” and publish my posts. Now the category is correctly set and only the expected posts are published to Facebook.
Related Posts:
- Multisite functions to communicate with individual site functions
- REST-API: extend media-endpoint
- Keep user’s privileges on accessing contents in JSON response
- How to modify WCMP Rest API response?
- wp_remote_get() returns 403 while file_get_contents() does not
- Limit post creation by role
- Socialite WP plugin, unable to obtain API keys from FB
- Getting a Page via its post-name using WP REST API v2 and Postman
- Custom API plugin to execute 3rd party API to retrieve data
- Escape commas in REST API
- Do i need to use a plugin for third party api integration?
- is it possible to fetch data from a remote api while admin is writing a new post?
- WordPress output data to another website and pull data
- How to get data from a private API and add it to wordpress pages
- wp rest api (v2) filter not working (404 error – rest_no_route)
- How can I send api calls from my plugin?
- Is it possible to create post in wordpress using postman?
- i need to resive data external api and show user
- Posting from WordPress to Facebook [closed]
- Plugin is a widget, but I want to call it in the head, can I?
- Great blogs site resources/tutorial for WordPress Developers? [closed]
- How to grab facebook page feed?
- How to pass the API key to the client from the database? [closed]
- Prevent plugin from intruding on wp-json posts api
- REST route from a plugin not working if WordPress is installed in a subdirectory
- Plugin retrieving results even after uninstallation
- WordPress REST API Plugin Development – Add Custom Endpoint
- Where is this strange og:description coming from?
- Shortcode does not expand in Facebook like
- How to set category correctly for a custom post created by a remote API call?
- Integrating boxtal PHP library into a custom WordPress Plugin
- How to create WordPress custom end point with multiple parameters?
- How to execute plugin and theme updates from a web hook / endpoint?
- How do I make reusable content blocks for header and footer when using WordPress headless with another front-end?
- REST API can’t get the response manually
- How to get theme’s info from wordpress.org/themes using api.wordpress.org?
- How to integrate together a website currently hosted WordPress.com and a custom web application currently hosted on Azure?
- How to Include Fields in Query String When Making Request of WordPress.org Plugin API?
- how do i change my website facebook login button to another text immediately user login? [closed]
- Sending customer an email with link to stripe to make payment
- Api external with wordpress
- How to get a list of all the available plugins names
- How can ι create my own (custom) WordPress table/list?
- WP Rest API and json_decode()
- WordPress /users/me endpoint request forbidden
- Can i use init hook for API purpose?
- HTTPS connection with wampserver for “Facebook for WordPress” plugin
- Error: Can´t access facebook comment plugin admin page
- Facebook ‘Share’ and ‘Like’ on individual posts
- Facebook and Twitter share buttons not working [closed]
- Change the Simple Facebook Connect popup position
- Publishing a video from blog to youtube
- Including content from legacy app: via plugin or custom content?
- Why may one avoid Jetpack plugin? [closed]
- How to get Facebook comment plugin in blog? [closed]
- Displaying the facebook profile picture in the WP-FB AutoConnect widget?
- Seperate plugin and theme files
- Change Dashboard URL from wp-admin to wp-admin/index.php
- WordPress Media Library Folders + Custom Linux Server Hosting
- How to convert Currency from USD to other IP Based currency in Php function
- wc_get_template_part doesnt display the content [duplicate]
- WordPress REST API: Query media files attached to a custom post type
- How do I display PHP file contents on front end of WordPress?
- Allow webp use on website but disallow webp as featured image during post creation
- How to stop Facebook mobile in-app browser cache on WordPress
- I’m receiving the following error using the below code: Uncaught Error: Cannot use object of type WP_REST_Response as array
- Push Contact form 7 variable to front end after submission
- How to send SMS notification to customer after click on submit?
- How to send the featured image of a post to an API?
- Ability to change homepage on WordPress using API
- How to authenticate via API to allow writes/updates
- Adding Custom Endpoint in WordPress Rest API
- One WooCommerce Store to multi distributor sites
- How to use third-party SendGrid Email Validation API in Gravity Forms?
- Custom REST API POST Endpoint Not Working, 404 Error
- Getting all woocommerce products from REST API call in plugin
- add tags to wordpress post using REST API
- Hide response returned from WordPress REST API call
- How much PHP and MySQL or MariaDB knowledge should I know to start writing WordPress themes and plug-ins and whatever else a beginner can edit?
- One time call to external API in widget
- How achive serving multiple concurrent Ajax / Rest calls in plugin?
- CRUD from WordPress to Business Central 365 through OData REST API
- Facebook sharing image error with facebook debug
- WP Rest Api GET method restriction on route, but POST method also works
- Showing how many times is plugin activated or deactivated
- Modifying server’s response to API endpoint
- wp_remote_post To external API multiple values with the same key
- Can’t access 3rd party API, code works on local server but not on wordpress
- Is it possible to custom set query for a WordPress REST API response?
- How can I add a permissions callback to the REST API index pages?
- Create API for registering user on wordpress site with 3rd party site
- Different function call depending on shortcode?
- How to find out programmatically whether any cache plugin is installed in the WordPress website?
- How to use information from the database in the front-end?
- Mailpoet Sign up on Custom registration form won’t work
- Fetching users data from REST API
- Consume legacy rest api dependent upon WP API plugin
- WordPress PHP error getting posts from another wordpress blog
- API page return Header 500 but Work
- custom REST endpoint not passing body of POST request to callback