Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Simple Category Posts Widget – Display posts on 2 columns

$
0
0

Replies: 0

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


Viewing all articles
Browse latest Browse all 59525

Trending Articles