php - WordPress custom template not displaying custom HTML, Custom fields, etc -


i developing custom theme in wordpress, , trying put custom html , php in home page template. whenever posting code divs or custom fields in home page template, not rendering , displaying on front end. in example below, <div class="col-full"> not being shown on front end.

    <?php      /*     template name: home     */     ?>     <!doctype html>      <?php get_header(); ?>      <center>         <div class="col-full">     <?php get_template_part( 'content', get_post_format() ); ?>       </center>      <?php get_footer(); ?> 

looking @ code, you've set template file. these need manually selected page template work.

i'd recommend consulting wordpress template hierarchy https://wphierarchy.com/. shows files try loaded based on page you're visiting.

if you're still having trouble, i'd suggest installing plugin https://en-au.wordpress.org/plugins/query-monitor/, tell template being loaded other handy information.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -