WordPress.org

Support

Support » How-To and Troubleshooting » modify loop to use class to post into seperate divs

modify loop to use class to post into seperate divs

  • 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

  • The topic ‘modify loop to use class to post into seperate divs’ is closed to new replies.
Skip to toolbar