taxonomyRelated issues-Collection of common programming errors


  • drake035
    taxonomy page-template archives
    I have a Custom Post Type called “book” and a custom taxonomy for this CPT called “books”. One term’s slug of this taxonomy is “accepting-yourself”. Here’s the code of the “accepting-yourself” archive page (URL: my_site/books/accepting-yourself/):if ( have_posts() ) : while ( have_posts() ) : the_post(); echo get_the_title();endwhile; endif;This should return all the “book” posts in custom taxonomy “books”, that’s 8 posts. Instead it returns only one.Just in case here’s the code defining my cust

  • everaftergraphics
    7 taxonomy css
    I have to create a website that allows for a “new” tag to be floated above certain pictures that have the specific taxonomy term of “new”. I created a view for the “new” where I added an empty div below the image and then floated it above the image and added the actual “new” image with CSS. This is what it looks like For the “new” node.tpl.php the code looks like this:<article class=”node-<?php print $node->nid; ?> <?php print $classes; ?> clearfix”<?php print $attributes

  • kiamlaluno
    7 taxonomy ubercart
    I upgraded a D6/Ubercart 2 website to D7/Ubercart 3. The upgrade seems to have gone very well and I have all of my updated modules installed. The only issue I am seeing right now is that I cannot save changes to any Ubercart Product content node. When I try to edit and save a product node, I receive a generic “The website encountered an unexpected error. Please try again later” error. However, watchdog is more verbose with what went wrong:PDOException: SQLSTATE[42000]: Syntax error or access vio

  • John
    7 nodes taxonomy blocks
    I’m in drupal 7. Let’s say I have a block on a website page. The website page is a node that has taxonomy terms. How do I programatically get the taxonomy terms of the website page node from my block?

  • porton
    7 taxonomy
    Drupal 7.We want to remove tags (of Tags vocabulary) automatically when all pages referring to this tag are removed.Is there a module for this?

  • kiamlaluno
    taxonomy taxonomy-access workbench
    We have created a vocabulary with terms this way:(main term A)|+– subterm A1+– subterm A2+– ..\– subterm A3(main term B)|+– subterm B1+– subterm B2+– ..\– subterm B3Easy right?Then we’ve created “main terms” roles. Then we’ve used the taxonomy_access for those “main terms” roles. I.e. The rôle called main term A will only be allowed to create subterms of the main term A term.Easy right?Now we need reviewers. So we’ve “split” “main terms” roles in two:”main terms A contributors” “main ter

  • Gisle Hannemyr
    7 taxonomy urls path-aliases wsod
    I am using drupal 7, when I am going to path of terms I see only white page, no error and nothing in another page I have not this problem, some php properties are :error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED & ~E_WARNING max_execution_time = 360 max_input_time = 120 memory_limit = 32M upload_max_filesize = 32M post_max_size = 32M mbstring.func_overload = 2 mbstring.internal_encoding = UTF-8where is the problem? and how can I solve it?

  • Rise
    custom-taxonomy 3.0 taxonomy terms
    I currently have a taxonomy called wpsc_product_category. Under that taxonomy I have several terms used as sub-categories, and finally each sub-category has a number of products. I’m trying to use wp_list_categories to show an ul starting from the parent category of the current product your are viewing. ¿Is this possible?<?php $taxonomy = ‘wpsc_product_category’; $orderby = ‘name’; $show_count = 0; // 1 for yes, 0 for no $pad_counts = 0; // 1 for yes, 0 for no $hier

  • Adam Moss
    custom-taxonomy taxonomy
    I have a post type called venues, and each post type has a list of values to choose from in my custom taxonomy ‘location’.E.g:London (top level)West London (2nd level) North London (2nd level) East London (2nd level)Hackney etc.. (3rd level)I would like to find results that match the lowest tier of taxonomy first, if there aren’t any posts, then it will get results from the next taxonomy up, and so on. Each time the venue only has 1 value on each tier of the location taxonomy.Any help much appre

  • BigBrother2010
    7 taxonomy
    Is there a simple list which i can use to import all countries and cities in the world in vocabular ? I was googling for several solutions but none worked (i am not good with importing CSV files so manulay copy/paste in Taxonomy Manager would work for me).I managed to get all countries and cities for Europe (used wiki) and imported them in vocabulary. Took me a while and i doubt its all correct.Other problem is that i get memory problems when i try to access this vocabulary and only Europe is im

Web site is in building