I wanted to wrap a div around one of the fields i was inserting into the post content but it took out the class name i tried to include. Is there anyway around this?
I wanted to wrap a div around one of the fields i was inserting into the post content but it took out the class name i tried to include. Is there anyway around this?
We will look into this. It shouldn't be stripping any content out of that field. Can you post a code snippet of exactly what you are placing in the post content template field?
Quick response!
Here is the snippet of code:
<div class="test">{Post Custom Field:4}</div> :{Post Title:1} : {Post Body:2}
Hi Carl interestingly I was just playing with the code and if i use class=".... then it is ok but if I use id="... then it removes the id.
The other thing that i have noticed i that it won't show the excerpt the body content overrides it when using the custom post template.
ideally the excerpt should be separate so i can style them both separately and then the id is fine as it would show on the single page and be unique
I'm unable to recreate this, nothing is being stripped when I enter HTML in the post content template field. Can you export that form and provide a link to the export file so I can import your form and test with the form you are using?
Hi Carl I have emailed it to you
I'm unable to reproduce the id="test" stripping issue, even using your form by importing it and submitting it. The Post Body content is correct, including the id in the DIV that is wrapping the custom field value.
The Excerpt issue is a bug and we will fix this in the next beta release. It shouldn't be applying the post content template to the excerpt, only the body.
that is odd as i have no other plugins activated and it still does it when i use id=...