Title: Dynamically changing posts?
Last modified: August 20, 2016

---

# Dynamically changing posts?

 *  [Uthred](https://wordpress.org/support/users/uthred/)
 * (@uthred)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/dynamically-changing-posts/)
 * Is it possible to manipulate the content of a post as its called by the loop (
   or a single page request) ? e.g. lets say I want to create a page that displays
   four divs, and styles each one appropriately. Do I need to add the class or ids
   to the divs when I enter them into the post or can I add the classes as the post
   content is called by the loop? i.e. can I set up a template that says “Place 
   the first div from the post here and the second one there”?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/dynamically-changing-posts/#post-2664667)
 * If you use the HTML tab (and stick to it), you could enter your markup in the
   post’s content. Doesn’t seem worth creating a special template for just one post.
 *  Thread Starter [Uthred](https://wordpress.org/support/users/uthred/)
 * (@uthred)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/dynamically-changing-posts/#post-2664668)
 * Well its for a series of posts to create a gallery style effect, as I mentioned
   in my OP I was aware that I could enter it in the posts markup, I was wondering
   was there a way to do it dynamically
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/dynamically-changing-posts/#post-2664670)
 * Have a look at [http://ottopress.com/2011/photo-gallery-primer/](http://ottopress.com/2011/photo-gallery-primer/)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Dynamically changing posts?’ is closed to new replies.

 * 3 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/dynamically-changing-posts/#post-2664670)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
