ACF Code Field plugin is a excellent plugin which we’ve implemented on our website. We’ve found this plugin to be very valuable, but we noticed it’s no longer available on www.remarpro.com.
We understand your decision regarding the plugin’s status on www.remarpro.com. However, we’d like to explore options for continued use on our website.
We’d greatly appreciate the opportunity to discuss these options with you further. If you’re no longer actively involved with the plugin, any information you could share about its ownership status would also be helpful.
Thank you for your time and consideration. We look forward to hearing from you soon.
]]>hi all – this is quite convenient when making sites for folks with 3rd party embeds like Mailchimp or external code. any idea why this was removed and if something is equivalent to replace it?
]]>I have been using this ACF add on for several years, great plugin.
Recently we installed Rank Math (we used to use Yoast). Rank Math is supposed to be able to read from ACF custom fields when performing SEO analysis, in fact it does work when using the stock Text Area or WYSIWYG editors, but when using the Code Field then Rank Math cannot read from the field to run it’s analysis on.
Any ideas as to why it may not work? At least with Yoast we can disable SEO analysis and just use it for meta data, but with Rank Math the option is only SEO on or off (per post type).
Cheers
]]>I am not sure this plugin is being supported or furthered worked on, however I was wondering if there is a way to add ‘autocomplete’ to a code field? I know that when enabling the built in Codemirror on WordPress text fields the auto complete is on. However this is now option with this plugin to do that.
Possible?
Cheers!
]]>Hi, thank you for the great plugin!
How can I enable text wrapping in the CodeMirror editor? My text goes way outside the window width.
Thanks
]]>If you create a Gutenberg Block using ACF and include a code field, the styles for the codemirror theme selected are not being applied. The code field works but syntax highlighting is not working and everything is black and white. I guess the style sheet is not being queued up to run in the block?
]]>Is it possible to change the default theme from ‘monokai’ to a different one? It’s a minor inconvenience but I would love to be able to set it once rather than each time I create a new code field (or forget to!)
Thanks so much — this plugin is a life saver!
]]>Hi, can’t save code anymore.
Using this plugin for a “snippet” site where I save code but it can’t save a ! exclamation mark. It results in a 403 page.
Would like to save this, but only works without the exclamation mark:
if(!($totalterm===$termcount))
I’ve implemented this field in a repeater via PHP for a custom plugin. I’m finding that the code snippets will get updated for HTML safe characters.
For example, if I enter: ($calc1 >= 6) ? 1 : 0
It will show after it is saved with the >= portion as ‘>’ plus the semicolon.
If I just define it via the via WP admin in a repeater say associated with a post then it works fine. I can’t do that though with a custom plugin, I have to do it via PHP. Any fix?
]]>First of all, thanks for this great plugin!
Now that ACF supports Gutenberg blocks, I’m trying to create a simple block for ACF code field. But I’m having a hard time displaying it correctly since I can’t figure the proper assets to include.
Can you please help?
Thanks!
Hey there!
When I add a Code field inside either a Groups, Repeater or Flexible field, then add some code and press update the field disappears from both my custom ACF Option page and in the Edit Field Group page.
Happening on version 1.8 while running ACF 5.7.13 and up
]]>“Description
Code field for Advanced Custom Fields. Works with ACF versions 4 (free) and 5 (Pro). Based on the Codemirror javascript plugin.”
I was looking for a plugin to help me format code (that would be shown as a code-snippet on the front end) – and this seemed to fit the bill.
After working with a bit / I realized that this was an actually injecting code into the page flow. That’s really cool… but the description doesn’t really explain that.
The code is useful for me to learn from though – so I can build what I need. Thanks! – but just a suggestion to explain it a bit more.
]]>Hello,
I write my article in html from custom posts made with ACF.
I just tried ACF code field to replace the wysiwyg field in order to get syntaxt highlighting.
But doing that I loose all the convenient buttons just above the field area that I had before such as :
– the load media button
– different buttons adding code snippets and html tags
How can I create buttons that would for exemple suround selected text with <p> tags when you click them.
And how to get back my load media button in this code field ?
Last question off topic :
Can I beautify the code in a code field : auto indentation etc…
Thanks for helping,
Fran?ois
]]>Hi
In WP 5.1.1 height of this field is only for one row, I don not see any settings for that in back-end. How to fix that?
]]>Im trying to use the dynamic html content from this field in elementor.
It doesnt seem to work with any widget.
Any suggestions how to use it succesfully?
]]>Hello-
I love this ACF Add On and have been using it for a while but am noticing an issue on a new client site I am building. When dropping in some standard pixel tracking code (which is what I routinely use this field for on client sites) it seems to be re-writing/re-formatting the code. It looks like it is specifically with quotes. I have tried manually bringing the code into my code editor to ensure all formatting is stripped out, tried copying code from another client’s site (where it is working), tried manually writing but all with no luck.
Screenshot 1 of what it should look like.
Screenshot 2 of what it looks like after saving.
This is happening with:
Wordpress 5.0.3
ACF Pro 5.7.11
ACF Code Field 1.7
Thanks
]]>When logged in as a custom user type (registered in plugin), even with admin level permissions;
function add_roles_on_plugin_activation_tester() {
add_role( 'tester', ' Tester', array(
'activate_plugins' => false,
'delete_others_pages' => true,
'delete_others_posts' => true,
'delete_pages' => true,
'delete_posts' => true,
'delete_private_pages' => true,
'delete_private_posts' => true,
'delete_published_pages' => true,
'delete_published_posts' => true,
'edit_dashboard' => true,
'edit_others_pages' => true,
'edit_others_posts' => true,
'edit_pages' => true,
'edit_posts' => true,
'edit_private_pages' => true,
'edit_private_posts' => true,
'edit_published_pages' => true,
'edit_published_posts' => true,
'edit_theme_options' => true,
'export' => false,
'import' => false,
'list_users' => false,
'manage_categories' => false,
'manage_links' => true,
'manage_options' => true,
'moderate_comments' => false,
'promote_users' => false,
'publish_pages' => true,
'publish_posts' => true,
'read_private_pages' => true,
'read_private_posts' => true,
'read' => true,
'remove_users' => false,
'switch_themes' => false,
'upload_files' => true,
'customize' => true,
'delete_site' => false,
'level_1' => true
) );
}
register_activation_hook( __FILE__, 'add_roles_on_plugin_activation_tester' );
Upon saving, <style> stags are stripped and certain characters such as < are encoded.This does not occur with default user types such as ‘admin’, or ‘editor’.
I’m using ACF ver. 5.7.10, and version 1.7 of this plugin.
]]>After adding code fields to page, content text editor’s syntax highlight disappears.
]]>The ACF Code Field does not save when using the Gutenberg editor. It does save when using a textarea instead. It also saves when Gutenberg is deactivated. Any ideas?
Thanks!
]]>Hello,
i want to use the plugin, but it doesn’t work. I think i do some mistakes.
I just installed. I can choose the Field Type, Themes and Languages in Code Tools . Everything works in this way. But if i want to display the lines on page, it doesn’t format. There’s no theme or anything else i edited like Language PHP or Theme Monokai on page.
Maybe there’s a way to install correctly or do i have to inlcude some files in a specific directory?
I work with ACF PRO 5.6.7
Greetings, Michael
]]>Great plugin. Thank you very much for creating it. A little problem I guess:
I’ve assigned a field group that contains a code field to a Widget. Anything that I enter into the field when I run it through Appearance -> Widgets does not save.
Plugin works elsewhere. Any thoughts as to why it’s not saving data?
]]>Hi guys,
I dont know if this is the right plugin.
I have a date field (DD/MM/YYYY). After saving, I want the year to be saved in another field. Is it possible to use this plugin for that?
Thanks.
]]>On Right-to-left layouts (Hebrew, Arabic…) the code field appears RTL as other text on page. It should stay LTR at all times.
A simple direction: ltr;
on the CodeMirror
class fixes this.
Before:
After:
I’m using the ACF Code Field plugin in WordPress 4.6.1, inside ACF flexible content.
I’m using ACF Code Field version 1.6,
The problem I’m having with the ACF Code Field plugin already existed before the WordPress 4.7 update.
Problem:
When entering code inside the ACF Code Field, with lines longer than the window view, the Code Field stretches it’s width with the width of the added long code line. Again, the width of the ACF flexible content block is stretched because of the Code Field width.
Apart from the fact that it looks off and the ACF flexible content block is now wider than the window view, the flexible content block overlaps/blocks the ‘publish update’ button, preventing the user from being able to update the pages content.
Is this a known problem and is there any solution?
Thanks!
Hi,
I have two questions please. Is there anyway to stop the code box stretching across the whole screen on the admin side without adding breaks in the code?
I have entered some php into the box and it just prints as text. This is the php
$results = $wpdb->get_results(“SELECT utility_name FROM db_utility INNER JOIN ma_utility ON db_utility.utility_id=ma_utility.utility_id WHERE ma_utility.loc_id=$location AND db_utility.utility_group=’Fuel’ ORDER BY utility_name ASC”);
Any ideas what I am doing wrong?
Thanks
I have installed and activated the plugin, but when I go into ACF and create a new field, the Code Area option does not appear in the Field Type drop-down. Not sure what the issue could be. Thanks in advance!
]]>The author appears to have disappeared. Is this still supported?
]]>Can you advise if you plan on implementing php in the editor or how that can be done?
]]>Great work so far! Just a couple of additional thoughts:
I’m not seeing a resize handle on the editor window. So, when my code fills the window, there’s no way to make the window bigger. The Advanced Custom Fields textarea field has this feature.
The Advanced Custom Fields textarea field also has a setting for the number of rows to set the textarea height. That would be helpful for your plugin, too, so that we can set the initial height of the editor window.
]]>Plugin looks great, sadly this does not yet work inside a flexible field
]]>