yeroc
Forum Replies Created
-
Forum: Plugins
In reply to: [plugin alphas-categories-widget] – Bug: excluuding doesn’t seem to workHey everyone,
I ran into this trouble too, and as PressingIt says you need the cat_ID number.
How do you get that? Just go to Posts > Categories and hover your mouse over the category you want to exclude. Look at the bottom of the browser window and you’ll see the URL telling you what the category ID is.
Just put that number into the “exclude” textbox, and you’re set! More than one you can just separate with commas.
Forum: Themes and Templates
In reply to: Custom Blog Page Sidebars & CSSAha! I figured it out. Here’s what I did:
As esmi suggested, create a sidebar-2.php file.
Within that file, change this:
<?php /* WordPress Widget Support */ if (function_exists('dynamic_sidebar') and dynamic_sidebar(1)) { } else { ?>to this:
<?php /* WordPress Widget Support */ if (function_exists('dynamic_sidebar') and dynamic_sidebar(2)) { } else { ?>…so that it will be associated with the 2nd sidebar in the array I defined in functions.php.
Then, I went into my page.php template and nixed this code:
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar2') ) : ?> <?php endif; ?>…and instead used this:
<?php include ('sidebar-2.php'); ?>…et voila! All appears well in the world.
I’m a little confused why so many sites were saying for me to use that funky if statement, though. Am I going about this the wrong way?
Forum: Themes and Templates
In reply to: Custom Blog Page Sidebars & CSSThank you so much for your help!
I created the sidebar-2.php file, but still to no avail. To make it, I just copied the sidebar.php file – is that right? Or do I need to modify anything about the file?
Or is the issue that I’m not invoking this new file somewhere?