Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Advance custom field and twenty fourteen child theme

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #173565
    ravi
    Participant

    I am using advance custom field plugin with twenty fourteen child theme .

    I have made a custom template inside (twentyfourteen-child/page-templates)

    and have put the php code to display custom fields in that template but nothing is showing up in front-end

    Below is the code of my custom template

    <?php
    /**
    * Template Name: Two Column Template Page
    *
    * @package WordPress
    * @subpackage Twenty_Fourteen
    * @since Twenty Fourteen 1.0
    */

    get_header(‘football’); ?>

    <?php
    if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
    // Include the featured content template.
    get_template_part( ‘featured-content’ );
    }
    ?>

    <?php the_field(‘match_date’); ?>
    ” alt=”” />

    <?php the_field(‘team_a_name’); ?>

    ” alt=”” />

    <?php the_field(‘team_b_name’); ?>

    <!– #content –>

    <!– #primary –>

    <!– #main-content –>

    <?php get_sidebar(‘content’); ?>
    <?php get_footer(); ?>

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.