Title: Using ACF in php include
Last modified: May 9, 2017

---

# Using ACF in php include

 *  [jcopacetic](https://wordpress.org/support/users/jcopacetic/)
 * (@jcopacetic)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/using-acf-in-php-include/)
 * I need two things:
 * 1. I have a section of my website that needs to be use on multiple pages with
   the same content.
 * 2. I have another section with the same requirement as above, but it is a reviews
   slider.
 * What I would like to do is store the markup for this, while having the content
   for this section be editable using ACF. I would like a central location to edit
   this sections content fields, and I would like to include the section to any 
   page using shortcodes or php includes, or etc.
 * I tried using “reusable text blocks” and I can assign ACF fields to the blocks
   I create, but I cannot wrap these blocks in my markup. I can place all of my 
   markup in text block and it will work, but it isn’t easily editable (non-developer
   friendly).
 * I thought about using a php include to add the global section to the templates
   that that they are needed on, but I don’t know how I would assign an ACF group
   to this file without making it a registered template. I don’t want to do this
   so the include file wouldn’t be editable.
 * I am really surprised that this isn’t a more common issue. Either 1. this is 
   a non-issue and I am missing the solution, or 2. this isn’t possible…. I would
   really like any kind of information regarding this. I build my WP templates from
   scratch if that matters.

Viewing 1 replies (of 1 total)

 *  [swayam.tejwani](https://wordpress.org/support/users/swayamtejwani/)
 * (@swayamtejwani)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/using-acf-in-php-include/#post-9124419)
 * I believe you can do this by creating a widget. As you said, you need a section
   with same content on multiple pages, so you can just create a widget, fill up
   the fields in Appearance->Widgets and call that sidebar in your template.

Viewing 1 replies (of 1 total)

The topic ‘Using ACF in php include’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [swayam.tejwani](https://wordpress.org/support/users/swayamtejwani/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/using-acf-in-php-include/#post-9124419)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
