WordPress.org

Ready to get started?Download WordPress

Forums

modify loop to use class to post into seperate divs (1 post)

  1. roclimb
    Member
    Posted 1 year ago #

    Hi, Im trying to split my post into two separate divs. If I have a certain div class added to the post content. I want that content in that class to post into a separate div and the rest into the main div.

    Example:

    <div left>post part of my post determined by a specific class I specify in the editor</div>

    <div right>display anything else I put in the editor to post</div>

    I would really like a PHP way to do this and not just by adding the divs and class in the editor as that is not what i'm looking for.

    Thanks
    Roclimb

Topic Closed

This topic has been closed to new replies.

About this Topic