Hayden Ng
Forum Replies Created
-
Thanks!
I have found the snippet that I need from wptips:
// change WordPress API URL to HOME URL add_filter('rest_url', 'wptips_home_url_as_api_url'); function wptips_home_url_as_api_url($url) { $url = str_replace(home_url(),site_url() , $url); return $url; }
It is working now. Thanks!
Hi,
So generally if the files weren’t uploaded through my site (wp media library), it won’t be synced to my wp media library?
Say if I upload a file directly to the s3 bucket, I won’t be able to see it in the wordpress media library as it doesn’t pull from the s3 bucket.
Hi, thanks for the context.
If I were to add the rest_url filter in the plugin function, wouldn’t it be overwritten when your plugin is updated to a new version.
Hi, I have managed to scope down the issue.
Apparently, the errors only appear when I change the
site url
to be a different one rather than the same one as thewordpress address
. Because my site is a headless site, different subdomains for frontend and backend.Maybe the plugin doesn’t cater for this type of scenario?
Hi, thanks for the reply.
No the site does not have the REST api disabled and the /wp-json/ can be accessed without problem. Any other sources that could be causing this issue?
Forum: Fixing WordPress
In reply to: How can i hide Rest API response from URL visitors ?I have the same question, was wondering if you have found a reliable solution to this?
Forum: Plugins
In reply to: [Custom Post Type UI] Child missing in REST APIThanks mate! Love your plugin btw, it is super nice to use.
Have a nice day ahead mate. ??
Forum: Plugins
In reply to: [Custom Post Type UI] Child missing in REST APIOh I missed you there, so by appending the rest api url to have
?per_page=20
did the trick. Thanks so much for the insight!Forum: Plugins
In reply to: [Custom Post Type UI] Child missing in REST APII think you are right! When I modify the url to
/projects/?page=2
, I can see the vanished responses there!By any chance do you know how should I modify the post per page in wp core?
I am using
projects
post type slug.Forum: Plugins
In reply to: [Custom Post Type UI] Child missing in REST APIBut it does seems like my rest api records tops out at 10 objects. So it means that there is actually a limit to rest api?
Forum: Plugins
In reply to: [Custom Post Type UI] Child missing in REST APII have created a local site and disabled all plugins except CPTUI and also use on of the default theme (Twenty Twenty).
The issue persists..
Forum: Plugins
In reply to: [Custom Post Type UI] Child missing in REST APIHi, since it is headless, I actually opened a clean / empty theme for it, the theme literally has nothing on it.
And I do not have a
mu-plugins
folder in mywp-content
folder.I’ll try to create a staging site for it to test that out.
Forum: Plugins
In reply to: [Custom Post Type UI] Child missing in REST APII have tried deactivating the REST API related plugins like:
– ACF to REST API
– Better REST API Featured Images
– WP HeadlessBut still no luck, one children is always gonna be missing from my REST API. However, I also have categories assigned to that disappeared children, in the category REST API, it does show it!
Forum: Plugins
In reply to: [Custom Post Type UI] Child missing in REST APIIt is something like that, let me correct some parts.
It’s more of like it happens in a sequence.
So let’s say I already have:
– Project A with Child A
– Project B with Child B
– Project C with Child C
When I create another Child A1 in Project A, the child from Project B would disappear. So i had to delete Child B and recreate it, but if I do that, child C will disappear! That is bizarre!I have checked my list of plugins, and everything is updated and seems normal. I also don’t understand why that happens and it is driving me crazyyy.
Here is a list of plugins that I am using:
- ACF to REST API
- Advanced Custom Fields
- Better REST API Featured Images
- CF7
- Contact Form CFDB7
- Custom Post Type UI
- Duplicate Post Page Menu & Custom Post Type
- Enable Media Replace
- Flamingo
- Replace Internal Link URLs
- Store file uploads for Contact Form 7
- Updraft Plus
- User Role Editor
- WebP Express
- White Label CMS
- Wordfence
- WP Add Mime Types
- WP Headless
- WP Mail SMTP
My site is a wordpress headless site btw.
Forum: Plugins
In reply to: [Contact Form 7] Contact Form 7 recaptcha 3 headless siteI found that this link explains how to get the token out of contact form 7,
But where should I place those PHP codes, how to retrieve it in the frontend, and once retrieved, what to do with it? To pass it back through .post …/feedback/ ?