Title: Filter Content to Append Div
Last modified: August 19, 2016

---

# Filter Content to Append Div

 *  [Tom Morton](https://wordpress.org/support/users/tm3909/)
 * (@tm3909)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/filter-content-to-append-div/)
 * 1.
 *  I’ve got a plugin that gives users the ability to vote “yes or no” on a post.
   I’m trying to automatically append the voting DIV to the Content and Excerpt 
   areas.
 *  I’ve got this code running to automatically display the voting DIV:
    _[Code 
   moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com)]_
 *  However, when I run this script it either randomly displays the DIV, doesn’t
   display the div but rather the text is appended to the excerpt (rather than in
   its own container, its with everything else) or it does not follow the In_category
   and displays it on all/random posts.
 *  Can anyone see the mistake I am making? Its been driving me mad for a few hours
   now!

The topic ‘Filter Content to Append Div’ is closed to new replies.

## Tags

 * [filter content](https://wordpress.org/support/topic-tag/filter-content/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Tom Morton](https://wordpress.org/support/users/tm3909/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/filter-content-to-append-div/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
