Created
March 6, 2026 03:34
-
-
Save wplit/ed92f36bd84c544dc262b2322e736a9d to your computer and use it in GitHub Desktop.
example custom function outputting two custom field values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function your_custom_function() { | |
| $output = '<p>' . get_field( 'acf_field_one' ) . '</p>'; | |
| $output .= '<p>' . get_field( 'acf_field_two' ) . '</p>'; | |
| return $output; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment