I created a new template for a page.
<?php /** * Template Name: Sponsors For Homepage */ ?> <html> <body> <?php get_header('sponsor'); ?> <div class='divone'> <?php the_content(); ?> </div> <div class='divtwo'> <?php sponser_advertisement(); ?> </div> </section> </body> </html>
And I added a new custom field for the template. Using the Advanced Custom Fields plugin 4.4.8
I made sure that the field would show on the correct template:
The fields showed up on my template page
For some reason the field value “This is the new field” does not not show up when I preview the page in my browser.
Thanks in advance.
Read more here: Custom field now showing up on my new page using WordPress?