WordPress.org

Ready to get started?Download WordPress

Forums

Best Approach? CPTs, Taxonomies + Plugins (5 posts)

  1. TheDoc
    Member
    Posted 2 years ago #

    I am currently developing a site and trying to figure out the best approach for what seems like a simple thing but is quite complicated with some of the restraints of WordPress.

    Essentially I have a section of a site, we'll call it 'Programs'. This is a top level page. Living in this section are both normal pages and program pages. Each program can be reached through three different 'streams': Activity Type, Age Group, and Venue.

    Each program can contain more than one age group and venue.

    Using CPTs and custom taxonomies I can create the program pages and have them cross reference each other perfectly (clicking on 'Children' brings up any program tagged for children; clicking on 'Tennis' brings up any program tagged with tennis).

    My problem occurs in the navigation. Since the CPT isn't a child page of the top level page 'Programs', things go a little wacky.

    I've also attempted going the Advanced Custom Fields route, but the cross referencing doesn't work.

    I've thought about going the Pods route, but waiting for 2.0 has taken 6+ months and I'm probably not going to wait much longer (I expect further delays).

    I'm considering firing up an eCommerce solution like WooCommerce and treating each program like a product and simply not having the ability to purchase anything.

    If anyone has any suggestions I am totally open to hearing it!

    Thanks for taking the time to read this. If you need any clarifications please let me know!

  2. mchelles
    Member
    Posted 2 years ago #

    I could probably offer a suggestion, but I am not sure what you mean by problems with the navigation. Do you mean creating a navigational menu (like at the top of a page where it says "Home, About, Contact, Page 1, etc.) or are you trying to build sort of like a sitemap/directory page of all the different taxonomies? If you could clarify - chances are it is something pretty simple to fix.

  3. TheDoc
    Member
    Posted 2 years ago #

    By 'problems with the navigation' I mean... the main dropdown navigation, breadcrumbs and the section navigation that will be in the sidebar.

  4. mchelles
    Member
    Posted 2 years ago #

    Are you using WordPress custom menus?

    This explains custom menus if you are not already using them:
    http://codex.wordpress.org/Function_Reference/wp_nav_menu

    To get your CPTs to show up there, just make sure you have this in the functions file where you are registering them:
    'show_in_nav_menus' => true,

    You can also always link to any page on your site directly also using custom nav menus. You can use the custom menu widgets to control what appears in the sidebar as well.

    For the breadcrumbs...I would probably do something like this tutorial:
    http://tkdigitaldesign.com/wordpress/how-to-write-a-breadcrumb-function-for-wordpress/

    And then just adjust as necessary for the taxonomies/custom post types. Some breadcrumb plugins support custom post types but I am not sure which ones off the top of my head.

    Good luck, hopefully that will help a little.

  5. TheDoc
    Member
    Posted 2 years ago #

    Yea, I'm using Custom Menus for the main navigation, but I don't want to have the client have to manage each section's navigation as well (about 5-6 sections).

    The problem, in essence, is that the CPTs are sort of taken out of the regular flow of the site's page structure.

    Thanks for the suggestions.

Topic Closed

This topic has been closed to new replies.

About this Topic