WordPress.org

Ready to get started?Download WordPress

Forums

Link Category Permalinks and Templates (2 posts)

  1. thecorkboard
    Member
    Posted 3 years ago #

    Context:
    800+ bookmarks have been migrated from Delicious into the links manager. Like custom post types, I'd like link categories to have an archives page and human readable permalink.

    Example for category "WordPress":
    Permalink would be set to = mysite.com/links/wordpress
    And would have 100+ links ordered by my choice.

    I've been perusing my couple of pro WP dev. books and the codex without much luck.

    Going through the template hierarchy it looks like a category.php template will kick in before archives.php, but in my case category.php always gets bypassed.

    Additionally, I assume that I need to use taxonomy_exists('link_category'); as a conditional statement in archives/template.php, correct?

    I've considered bypassing the links manager and going with a custom post type, but migrating 800 bookmarks by hand is not something I want to right now. I did try some post type switchers, but nothing worked to do the whole batch at once.

    Thanks,
    ~Kyle~

  2. thecorkboard
    Member
    Posted 3 years ago #

    More info:
    I'm using two ways to pull and display these categories.

    1) With a tag cloud which presents a permalink like so
    mysite.org/?taxonomy=link_category&term=wordpress-2:

    <?php wp_tag_cloud('smallest=10&largest=36&taxonomy=link_category&orderby=count'); ?>

    2) Using the Codex supplied get_terms example for an alphabetical listing with counts which presents a permlink based on the category name but returns a 404 with a url lik so
    mysite.org/wordpress:

    [Code moderated as per the Forum Rules. Please use the pastebin]

Topic Closed

This topic has been closed to new replies.

About this Topic