Archived topic
Edit attachment page
5 replies · Started by Oleg on September 23, 2015
Hi! How do I edit attachment page for GP? I necessary there appear custom fields of the plugin Advanced Custom Fields. I did not find where the insert code.
Hi Oleg,
You'll need to ask the ACF devs how to add the fields to the attachment post type - it's a core WordPress thing that GP doesn't have any control over.
They should be able to let you know if it's possible or not :)
That documentation page
it says to insert code in the page template:
<p><?php the_field('field_name', 12); ?></p>
This depend on what page you want to display this custom field. Where exactly you want to display this field?
On the attachment page. I thought, there is no difference to other pages.
Unh...you will need to create by yourself, this tutorials may help you:
http://www.wpbeginner.com/wp-themes/how-to-create-a-custom-single-attachments-template-in-wordpress/
http://premium.wpmudev.org/blog/advanced-attachment-page/
