I have created a custom html based template in wordpress.
Now, I would like to insert a form to the page that I created using my custom template.
I have inserted the following code inside of my custom template, which allows me to insert a form on the pages that use my custom template.
[php] <div id="primary"> <div id="content" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php comments_template( '', true ); ?> <?php endwhile; // end of the loop. ?> </div><!-- #content --> </div><!-- #primary -->
However, the form does not look and function the way it should, especially when I use advanced fields like Date with a picker, etc.
When I change the template of the page to my theme's default template, the form looks and function well.
My first idea was that the HTML code itself is the source of this problem. However, when I created just a blank custom template with the code above, the form looks exactly the same way (not good).
It looks to me that the above code is not the one that I should use. Can you help me with this problem please? I just spent 8 hours trying to find the solution. Your help is very much appreciated!
Thank you very, very much!