• Resolved dannstockton

    (@dannstockton)


    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/

    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

    (@123milliseconds)

    You could use

    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

    (@dannstockton)

    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

    (@123milliseconds)

    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

    (@dannstockton)

    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.