Inline Block Editing for ACF Pro and WordPress
by Ilya Zolotov · github.com/fnpen/inline-block-editing-acf-free · website
★ 4stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/fnpen/inline-block-editing-acf-free/archive/refs/heads/main.zipReadme
README
Install the plugin to WordPress
Open and edit template.php file
To enable incline editing add to container of field value:
<?php echo acf_content_editing('FIELD_NAME'); ?>
Example:
<?php
$user_name = get_field( 'user_name' );
$message = get_field( 'message' );
?>
<div class="block-testmonials-item">
<div class="post-info">
<div class="middle-area">
<a class="name" href="#">
<b <?php echo acf_content_editing('user_name'); ?> >
<?php echo esc_html( $user_name ); ?>
</b>
</a>
</div>
</div>
<p <?php echo acf_content_editing('message'); ?>><?php echo esc_html( $message ); ?></p>
</div>