WordPress.org

Ready to get started?Download WordPress

Forums

Custom taxonomies with extended tag fields? (1 post)

  1. jpilantrose
    Member
    Posted 4 years ago #

    Hi all,

    I'm working on a project that required custom post types and custom taxonomies. What I'd like to do is add additional fields to one of the custom taxonomies so they appear on the edit tag page.

    For example, say I want to have a taxonomy for Author under the custom post type "library. I'd register a taxonomy like this:

    register_taxonomy(
    		'authors',
    		'library',
    		array(
    			'hierarchical' => false,
    			'label' => 'Author',
    			'query_var' => false,
    			'rewrite' => array( 'slug' => 'author' )
    		)'

    Is there any way to make it so I have the options of adding a field on the edit tag page for Author that would be "author_url" where I could enter a corresponding url to the author's personal site or wikipedia entry? If I could do this, then I could use the custom taxonomy to pass additional info into boxes on each page.

    Any help is appreciated. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic