title: Wordpress, build a template for a post
body: <p>I would like to know how can I define a post template and adding automatically the html layout when we are creating a post?</p>
  
  <p>Do I have to use custom fields?</p>
  
  <p>For example:</p>
  
  <p>Post content: </p>
  
  <pre><code>   Title
      Description 1
      Description 2
      With links and social media
  </code></pre>
  
  <p>Html layout result:</p>
  
  <pre><code>   &lt;h1 class="work-title"&gt;Title&lt;/h1&gt;
         &lt;div class="description"&gt;Description 1&lt;/div&gt;
         &lt;div class="description"&gt;Description 2&lt;/div&gt;
         &lt;div class="details"&gt;With links and social media&lt;/div&gt;
      &lt;/div&gt; 
  </code></pre>
  
  <p>Thanks</p>