Welcome, guest!

Feel free to read the blog, browse for themes, or join the club.

Custom taxonomies / archive posts...

  1. I set up a custom taxonomy, called 'year'. I went into my database and changed the taxonomy of my year tags (2009, 2010, 2011, 2012, and 2013), and when you look in the admin, it reflects the number of posts associated to each year. However, when I click on the link in the tag list, I get the Not Found page.

    I created a new year tag, 2014, and posted a test post. I still get the Not Found page.

    http://hoosierhoopsreport.com/year/2014/

    For the custom taxonomies, I created a plugin. It's activated, and the year and team (another one) options show up in the New Post admin page. I'm obviously missing a step since it's not creating archive pages for my year tags. (I haven't made any changes with the team tags yet. I only have 5 year tags, over 100 team tags.)

    <?php
    
    /**
     * Plugin Name: Custom Taxonomy
     * Description: Creates a custom taxonomy
     * Version: 0.1
     */
    
     add_action( 'init', 'create_my_taxonomies', 0 );
    
    function create_my_taxonomies() {
    	register_taxonomy( 'team', 'post', array( 'hierarchical' => false, 'label' => 'Team', 'query_var' => true, 'rewrite' => true ) );
    	register_taxonomy( 'year', 'post', array( 'hierarchical' => false, 'label' => 'Year', 'query_var' => true, 'rewrite' => true ) );
    
    }
    
    ?>
  2. Is it possible that 'year' is reserved for some other archive functionality?

  3. You must be a logged-in exclusive member to view this reply.

  4. I"m having some conflicts with this. Despite showing 34 posts attributed to my new taxonomy, 'year', it says Sorry, there are no posts in this archive.. That's with the Default setting for permalinks. When I have a custom setting /%postname%/, it just shows Nothing Found - 404 page.

    Aside from changing the value of the term_id's taxonomy from post_tag to year, what else would I have to change to get those posts to show on my year archive page?

  5. You must be a logged-in exclusive member to view this reply.

  6. Getting this error:

    Parse error: syntax error, unexpected ';' in /home/jwrbloom/public_html/wp-content/plugins/taxonomy-custom/taxonomy-custom.php on line 19

    EDIT: It was missing a closing parenthesis.

  7. Using /%postname%/ isn't working for any Post now.

    To answer your other question, I haven't switched anything over to the Team taxonomy.

  8. When I switch the Permalink setting to Default, I get the same issue. The archive page for 'year' (in this case, 2011) says there are no posts. The rest of the Posts work.

  9. Here is a different way to look at this. When I go into the Posts panel on the far left of my Dashboard, I click on my custom taxonomy, Year. It shows as one of its options, 2011 with 34 posts. The 34 is a hyperlink. Upon clicking that link, it says, No posts found.

  10. Last update before bed:

    Using this as my Permalink: /%year%/%monthnum%/%post_id%/

    Still says No Posts Found in the Posts menu in the Dashboard, and in the site, clicking on a Year taxonomy link takes the User to a 404 page.

  11. You must be a logged-in exclusive member to view this reply.

  12. Still not working. Same results. I even reset the permalinks.

    EDIT: I tried installing Joost's Simple Taxonomy, and it's the same results.

  13. You must be a logged-in exclusive member to view this reply.

  14. Are these custom taxonomies working for you? I haven't tried deactivating my other plugins yet.

  15. You must be a logged-in exclusive member to view this reply.

  16. What would cause conflicts with it? I can't really change my permalinks because it messes with my bbPress synchronization. My posts rely on being able to click over to my site.

  17. You must be a logged-in exclusive member to view this reply.

  18. I put the custom taxonomies on another site, and they work there. The permalink settings are the same, and I'm loading my plugins from my main site too.

    I can't locate what plugin I used to give me a Tags widget. It's a widget that lets you choose which taxonomy to display, how big the text size a tag link can be, as well as how small it can be. You can give it a title, choose the orderby setting, etc.

    Do you think it might not play nicely with WP MU, seeing as how it's now accessing wp_1_terms or wp_1_term_taxonomy instead of wp_terms or wp_term_taxonomy data tables? But my Series plugin is working.

  19. Here are my plugins:

    Add bbpress Default Roles
    All in one SEO Pack
    Automatic Tag Link
    bbPress Integration
    Category Order
    Datafeedr Random Ads V2
    Event Calendar
    Executable PHP widget
    FollowMe (twitter)
    Google XML Sitemaps

    The Hybrid plugins

    My Link Order
    My Page Order
    NextGEN Gallery
    Page Link Manager
    Page List Plus
    PHP Execution
    Popularity Contest
    Query Posts
    Recent Posts with Excerpts
    Recommended Reading: Google Shared Reader

    Series (your plugin)

    SexyBookmarks
    Theme My Login
    Twitter for WP
    Widget Context
    Widget Logic
    Wishlist Member (need that one for sure)
    WP-bbPress sync
    WP-Filebase
    WP to Twitter

  20. You must be a logged-in exclusive member to view this reply.

  21. I've tried deactivating all plugins except the Hybrid ones, and that didn't work. I just tried deactivating all plugins, and it's still not working. I tried resetting the permalinks to Default. Nothing. I have 34 posts for the 'year' 2011, and when you click on the link in the menu panel, it says No Posts Found.

  22. You must be a logged-in exclusive member to view this reply.

  23. I just did. A couple of earlier, somewhat recent, queries didn't produce many results. It appears others are having troubles. It's working on one of my other sites, which is separate from my WPMU installation. I just tested on a test blog on my WPMU installation, and it works too.

    Where I need it, it doesn't work. It has to be a database issue.

Reply

You must log in to post.

Limited Access

If you have an account, please take a moment to log in.

Non-exclusive members have limited access to the support forums.

To enjoy the full range of support, sign up for an exclusive membership in the theme club.

Support Forums

  • Bliss Theme (202 posts)
  • Hybrid Theme (17,034 posts)
  • Options Theme (10,322 posts)
  • Structure Theme (2,624 posts)
  • Visionary Theme (767 posts)
  • bbPress Themes (293 posts)
  • WordPress Plugins (1,617 posts)
  • General Discussion (3,979 posts)