m8hue
Forum Replies Created
-
Forum: Plugins
In reply to: [Elementor Blocks for Gutenberg] Elementor blocks breaks ACF rest APISure,
Open up the ACF field group, scroll down to settings and open the tab ‘Group Settings’. There’s a toggle for ‘show in rest api’.
That adds the acf fields for the group to a post in the rest api under ‘acf: [array]’ per post when those ACF fields are filled out for the post.
With that setting active,
- open a post, fill out an acf field, and publish. Check the /wp-json/wp/v2/post/[$post->ID] for that post to see the acf value.
- edit the post to include an elementor block from the plugin. & publish.
- Recheck the link above to see the post is no longer showing ACF Fields in rest.
I did find a single boolean that does seem to be the source of the issue tracing through the function calls.
https://github.com/elementor/block-builder/blob/master/blocks/template-block.php
return Plugin::elementor()->frontend->get_builder_content( $attributes['selectedTemplate'], true );Line 122, if the boolean is switched to false, the rest api appears as it should. But looking into the ramifications of that is past what i’ve done on followup.
Forum: Fixing WordPress
In reply to: change permalink of an attachmentAh, there’s actually a constantly hidden option in the “screen options” dropdown at the top for the “slug”. If you check it on, you can edit it in a separate meta-box –- usually placed at the bottom of the page.
Also, I really would like the edit permalink button from pages on media pages. I came here looking for the exact same answer before I remembered the slug option.