• mihneathe

    (@mihneathe)


    Hello,

    I downloaded the plugin “Simple Category Posts Widget” and it works perfectly fine.

    With my limited php knowledge, I tried to change the code so that when posts are shown, they are listed on two columns, not on one. To accomplish this, I changed the widget.php file:

    (1) Added after the line
    “if ($the_query->have_posts()) : while ($the_query->have_posts()) : $the_query->the_post();”,
    the following line:
    <div class=”half”>

    (2) closed the </div> before the “endwhile;”

    The plug-in crashes after this :(. I would highly appreciate your help in changing the code for showing posts on 2 columns.

    Thank you

  • The topic ‘Simple Category Posts Widget – Display posts on 2 columns’ is closed to new replies.