WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

can you help me with two things :

  • i have different movies, to classify into different "genre", should i use "taxonomies" or the already built in "category"? is taxonomy more appropriate in this case? i saw so many tutorials about taxonomies, but also some website only using categories for several things, what should i do?

  • i'm trying to show my personal sidebar, so i built "mysidebar" into "functions.php",it is editable in my dashboard, but it doesn't work when i try to show it with :

get_sidebar ('mysidebar');


i tried another way, it works with :

if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('mysidebar') ) : dynamic_sidebar( 'mysidebar' ); ?>

isn't 'get_sidebar' the method to "call" the sidebar?

Ok so now i would like to customize my sidebar, so i created a php page named "sidebar-mysidebar.php" and i just echoed some text, that is not shown, could you tell me how to put some text with the code, and not only through the dashboard?

Thanks a lot

share|improve this question
  1. Categories are a hierarchical taxonomy. Tags are simply a non-hierarchical taxonomy. If you don't have a use for categories otherwise, then use them for genre. If you have a need for them, then create more taxonomies as needed for additional classification/categorization, etc..

  2. get_sidebar('mysidebar'); is for calling a sidebar template file, in your case sidebar-mysidebar.php. dynamic_sidebar('name'); is for calling the sidebars you've defined for the admin panel in your functions.php file. within your main template file you'd typically use get_sidebar() to load your sidebar template, then within that template call your dynamic_sidebar(), as well as add whatever additional text or default sidebar if the dynamic sidebar doesn't exist.

share|improve this answer
thanks Milo, so: should i use both like that? if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('mysidebar') ) : echo "LLL"; get_sidebar( 'mysidebar' ); Then, why the echo doesn't appear in the page, just before the sidebar? ALSO, let's say i'd like to create a menu for "articles to pay" and "articles free", inside of them : the categories like "see the articles about Action movies", then "articles for Comedy movies", some of them will be free, and some others won't, how should i organize them? "free articles" => category, "free articles about Action movies" => taxonomy ? – Paul_p May 29 '11 at 1:04
they're usually not used together, though they can be. typically get_sidebar calls a template, which then contains a call to a dynamic sidebar. look at the default twentyten theme to see how they use it. – Milo May 29 '11 at 17:27
Ok, thanks for the answer ! – Paul_p May 30 '11 at 6:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.