custom page template default content
-
Hello,
I have created a custom page template and id like to add some custom html to it so each page based on this page starts off with this html which i can then edit. The content is being output in the template (part) with the_content() function. How can i intercept or write my html to the_conent() so it gets output with the page template.The html is a very simple ‘nested’ unordered-list with some placeholder texts – if i comment-out the_content() function and echo the nested html it appears in the browser ok but not in the content area in the admin > pages to edit the page.
I believe i can hook into ‘the_content’ event – so maybe i just need to know how to ensure that any custom changes to the_content() only happen in my custom page template. Is this the best way to go or is there an easier way to write to the_content()
Thanks
- The topic ‘custom page template default content’ is closed to new replies.