Using ACF within design templates
-
A client’s website uses an ACF field to set the author on a standard post. Since they only need the Print My Blog plugin for a little while for internal archival purposes, we’ve taken the verboten step of hacking plugin files to get that custom field in the output. We’ve managed to get the ACF field working in Quick Print via the REST API output, but are having trouble getting that same field output in the Pro Print functionality, for the ‘Classic Digital PDF’ design. Looking at the templates for that design, and this template in particular:
designs –> pdf –> digital –> classic –> templates –> article.php
…it seems as though one could simply replace the standard WP ‘get_the_author()’ function with an ACF one, like ‘get_field(‘blog_author’)’, but that hasn’t worked in our tries. I know it’s unusual to support a template hack, but we’d appreciate any instructions you might have on doing this.
- The topic ‘Using ACF within design templates’ is closed to new replies.