custom post type or taxonomy

That Sounds about right, I’m just about to finish similar project with the same base (post type, taxonomies) structure, so here are a few notes to get you going:

  • To enable your “view agents” make
    sure when you register agents post
    type that you set has_archive to true
    or use string as archive slug which
    will make your life much easier.
  • When registering custom taxonomies
    make sure to set rewrite to true.
  • Create a custom template
    taxonomy-{taxonomy}.php for each of
    your custom taxonomies (even if they
    both show the same thing, trust me on
    this one) this will save you a lot of
    time.
  • On your “view agents” template file (archive-agents.php) Use wp_dropdown_categories
    function to generate your region and
    language dropdowns.
  • And last create your
    single-agents.php template file to
    display the full information of the
    agent.

Leave a Comment