Sidebar stuck below posts after page.php editing
-
I’m comfortable with the HTML and CSS of WordPress, but am entirely new to editing the PHP files.
I am working a project where I am using the Query Posts plugin, with another plugin, Widget Logic.
It’s an Events page, where past events are shown in the sidebar of this one page, and I’ve edited page.php to show upcoming events in the main area of the page. Both categories posts show up where they should, but the sidebar is stuck beneath the post, in the main area. Really not sure what the problem is, as the other pages look fine.
The code I added to page.php is this:<?php $catID = 0; if (is_page('EVENTS')) { $catID=3; } if ($catID) { $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=$catID&paged=$paged"); } ?>
And it’s put in right before The Loop.
Any ideas? You can see the problem here: https://stevenross.info/sandbox/?page_id=10Thanks in advance for any ideas or suggestions.
- The topic ‘Sidebar stuck below posts after page.php editing’ is closed to new replies.