Title: Adding DIVS to single.php
Last modified: August 19, 2016

---

# Adding DIVS to single.php

 *  Resolved [dannstockton](https://wordpress.org/support/users/dannstockton/)
 * (@dannstockton)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/adding-divs-to-singlephp/)
 * Hello,
 * I’m wondering if someone can help me understand the best way to accomplish something
   I can’t seem to wrap my brain around.
 * I’d like to have index.php display posts, but only pictures. (I’m good there)
 * Then, when a post is clicked, there would be 2 DIVS, left and right.
 * The left DIV would have a bigger picture (related to the index.php post picture,
   but a different file, so not from a thumbnail)
 * The right DIV would have text explaining the picture.
 * The best way I can describe how I want it to behave is to show
    [http://cardobserver.com/](http://cardobserver.com/)
 * The behavior I described above happens (assuming you didn’t click on an ad)
 * I’m having trouble understanding how this would be accomplished. I hope I’ve 
   been clear enough to explain my problem. Thanks!

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

 *  [Alwyn Botha](https://wordpress.org/support/users/123milliseconds/)
 * (@123milliseconds)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/adding-divs-to-singlephp/#post-1903274)
 * You could use
 * [http://codex.wordpress.org/Custom_Fields](http://codex.wordpress.org/Custom_Fields)
 * and custom post types;
 * Each post type is CARD
 * the card has an image and detail custom fields.
 * On the custom pages; writing simple PHP selects on those fields
 *  Thread Starter [dannstockton](https://wordpress.org/support/users/dannstockton/)
 * (@dannstockton)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/adding-divs-to-singlephp/#post-1903278)
 * 123milliseconds,
 * I like this approach a lot. I’ve tried fooling around with it, but alas. I’m 
   a PHP n00b. Could you point me in the right direction or help me out?
 * Thanks!
 *  [Alwyn Botha](https://wordpress.org/support/users/123milliseconds/)
 * (@123milliseconds)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/adding-divs-to-singlephp/#post-1903281)
 * It might be beyond your current – enthusaistic skill
 * Search google for wordpress customr fields and custom post type tutorials
 * All thats needed is around 5 custorm fields and one custom page to show it.
 * It could be done in 15 mins.
 * Importing your data from elsewhere into this new wp cutom fields is another 10
   minutes
 * —
 * I have a HORRENDOUNS cheap keyboard – hate every second of typing.
 *  Thread Starter [dannstockton](https://wordpress.org/support/users/dannstockton/)
 * (@dannstockton)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/adding-divs-to-singlephp/#post-1903282)
 * Already done before I asked. Thanks for your help.

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

The topic ‘Adding DIVS to single.php’ is closed to new replies.

## Tags

 * [div](https://wordpress.org/support/topic-tag/div/)
 * [single.php](https://wordpress.org/support/topic-tag/single-php/)

 * 4 replies
 * 2 participants
 * Last reply from: [dannstockton](https://wordpress.org/support/users/dannstockton/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/adding-divs-to-singlephp/#post-1903282)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
