PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

beta 2 including markup in post template

  1. 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?

    Posted 11 years ago on Thursday August 12, 2010 | Permalink
  2. 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?

    Posted 11 years ago on Thursday August 12, 2010 | Permalink
  3. Quick response!

    Here is the snippet of code:

    <div class="test">{Post Custom Field:4}</div> :{Post Title:1} : {Post Body:2}

    Posted 11 years ago on Thursday August 12, 2010 | Permalink
  4. 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

    Posted 11 years ago on Thursday August 12, 2010 | Permalink
  5. 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?

    Posted 11 years ago on Thursday August 12, 2010 | Permalink
  6. Hi Carl I have emailed it to you

    Posted 11 years ago on Thursday August 12, 2010 | Permalink
  7. 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.

    Posted 11 years ago on Thursday August 12, 2010 | Permalink
  8. that is odd as i have no other plugins activated and it still does it when i use id=...

    Posted 11 years ago on Thursday August 12, 2010 | Permalink