Support

Account

Forum Replies Created

  • Hi Jonathan thank you very much for your response.

    I created custom page template in that i have given below code

    <?php
    /*
    Template Name: My Custom Page
    */
    ?>
    <?php get_header(); ?>

    <div class=”container”>
    <h1 class=”post-heading”><?php the_title(); ?></h1>
    </div> <!– .container –>

    <div class=”page-wrap container”>
    <div id=”main-content”>
    <div class=”main-content-wrap clearfix”>
    <div id=”content”>

    <div id=”left-area”>

    <?php while ( have_posts() ) : the_post(); ?>

    <article class=”entry-content clearfix”>
    <?php if ( ! $featured_image ) : ?>
    <h1 class=”main-title”><?php the_title(); ?></h1>
    <?php endif; ?>

    <p><?php the_field(‘company’); ?></p>
    <p><?php the_field(‘address’); ?></p>
    <p><?php the_field(’email’); ?></p>
    <p><?php the_field(‘phone’); ?></p>
    <p><?php the_field(‘website’); ?></p>

    <p>




    </article> <!– .entry –>

    <?php endwhile; ?>

    </div> <!– end #left-area –>
    </div> <!– #content –>

    <?php get_sidebar(); ?>
    </div> <!– .main-content-wrap –>

    </div> <!– #main-content –>

    <?php get_footer(); ?>

    When i created a new page i assigned a “My custom Page” template.
    and i got it.

    Thank you very much

Viewing 1 post (of 1 total)