WordPress multi-column content (2 posts)

  1. misterx100
    Posted 4 years ago #


    The problem is as follows: I have a local WordPress installation with default theme and no plugins. I need to display the content like this:

    bbbbbbbbbbb cccccccccc
    bbbbbbbbbbb cccccccccc
    bbbbbbbbbbb cccccccccc
    bbbbbbbbbbb cccccccccc

    How can this be achived?

    Sorry for my bad english.

  2. Michael
    Forum Moderator
    Posted 4 years ago #

    default theme = Twenty Eleven ?

    start by creating a child theme to work with: http://codex.wordpress.org/Child_Themes

    how much different?
    - just the formatting or also the output ?
    , such as different thum

    if the difference is just in the formatting:
    edit content.php in the child theme, and add some code in this line:

    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

    for instance:

    <article id="post-<?php the_ID(); ?>" <?php $full_half = ($wp_query->current_post == 0) ? 'full-width' : 'half-width'; post_class($full_half); ?>>

    this will give you an additional css class for the post which you could use to format any other than the first post as half wide.

Topic Closed

This topic has been closed to new replies.

About this Topic