creativiii
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Changing site address URL breaks saving postsIf https://example.com/ ends up serving your WP content
Well yes, but also no. The front-end is running in react, so it’s got no connection with WordPress itself except for the fact it uses Wp’s API, so that’s probably why that’s not working.
Maybe you could use .htaccess rewrite rules to redirect https://example.com/ API requests through https://api.example.com?
Any idea how to go about doing this?
- This reply was modified 5 years, 8 months ago by creativiii.
Forum: Developing with WordPress
In reply to: Wp-Env with Gutenber doesn’t have a Rest APIThe Rest API was actually located at:
http://localhost:8888/index.php?rest_route=/wp/v2/
Thanks to the gutenberg github for helping me figure that out.
Forum: Fixing WordPress
In reply to: Allow users to delete their accounts from Rest APIHi,
Thank you for the quick response. While it’s good to know that we’re not breaching gdpr I’d stil like the functionality.
I asked for a functions.php solution so I could implement it within a plugin, that may have not been clear!
Let me know if you can help.
Forum: Plugins
In reply to: [Gutenberg] setAttributes doesn’t save attributesUpon second inspection I can set the attributes to true, but I can’t set it to false after.
That’s really strange and doesn’t make a whole lot of sense to me.
Forum: Plugins
In reply to: [Gutenberg] Request for official Gutenberg create-react-appI second this. The current way of creating blocks is ridiculously complex.
Forum: Plugins
In reply to: [Gutenberg] setAttributes doesn’t save attributesI figured it out. It seems that at some point I added another custom block and used the same name for it.
wp_enqueue_script( 'palette-script', // this was already used plugins_url( 'build/index.js', __FILE__ ), array( 'wp-blocks', 'wp-element', 'wp-components' ) );So even though they were in completely different files and my Block didn’t give me any errors, it was actually conflicting with the way it was working.
Forum: Plugins
In reply to: [Gutenberg] setAttributes doesn’t save attributesUpdated the Github, that wasn’t the problem either
Forum: Plugins
In reply to: [Gutenberg] setAttributes doesn’t save attributesThat’s also what I thought, so I changed it to just use Attributes rather than a mix, but the problem is still the same.
I’ve updated the github.
Forum: Developing with WordPress
In reply to: Custom field data and custom Rest API fieldsFair enough, my main reason not to create a custom interface was wanting to work with the React Gutenberg editor as I really like its functionality.
Are there any good resources you could recommend on creating a custom admin-post.php interface?