<?php
/**
 * Template Name: Faq Answer
 */

get_header();

$post = $posts[0];
?>

    <div class="main-page">
        <div class="faq-search">
            <div class="cont">
                <form method="POST" id="search-form" action="/faq-page">
                    <input type="text" placeholder="What do you need help with?" name="search_text" value="<?= enableSearchQuery()?$_POST['search_text']:''?>">
                    <a href="#" class="start-search">
                        <span class="icon-search"></span>
                    </a>
                </form>
            </div>
        </div>
        <div class="breadcrumbs">
            <div class="cont">
                <ol class="breadcrumb">
                    <li><a href="/">Home</a></li>
                    <li class="active">FAQ</li>
                </ol>
            </div>
        </div>


        <div class="faq-answer">
            <div class="cont">
                <div class="answer-cont">
                    <h4><?= $post->post_name?></h4>
                    <div class="answer-text">
                        <?= $post->post_content?>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php
get_footer();


