WordPress: Insert Custom Markup in Template -


I have a page. Php template and I want the first segment to be and lt; Div id = "featured" & gt; How can I do this for style differently?

I can not insert from the_content () in my template, just output to the whole content. I can put additional markup in the editor in HTML mode, but then every one of me The new page will have to repeat this process. Apart from this, the editor does not include the blank p tag for any reason.

The markup looks like this:

  & lt; Img & gt; & Lt; P & gt; & Lt; P & gt; & Lt; P & gt; & Lt; P & gt; ...   

What do I need:

  & lt; Div id = "featured" & gt; & Lt; Img & gt; & Lt; P & gt; & Lt; / Div & gt; & Lt; P & gt; & Lt; P & gt; ...   

What is the best way to do this?

Edit : Thank you for your reply after a few more searches that I found out what I was actually looking at was not as easy as I expected, but it life :). Text ">

A classic case for a featured image and part!

You will be able to both your functions.php

  add_post_type_support ('page', 'fraction '); Add_theme_support (' Post Thumbnail ');   

Then you have your tempate files (pages.php for pages and single.php for posts)

  and 

Comments