WordPress.org

Forums

  1. greensween
    Member
    Posted 2 years ago #

    Hi and thanks a million for this plugin.. This is my first time using it and I'm hoping it is going to help me quite a bit. But at the minute I'm just trying to get my head around it.

    I'm just wondering if I've missed something and will this plugin fit my needs.

    Basically what I want to do is create a page for my company website.. where I can go in and manage my department's training content. Each team within the department has its own material that is relevant to them. So how I was planning on setting thus up was.. (I'm not querying on how to manage the users.. just the content)

    Content would be my custom post type.
    ttype ( would be my cpt-onomy that would be available to describe the content for the different teams within the department.. team1, team2, team3 etc). I've set up the ttype cpt-onomy and attached it to the content post type. And that seems to be working.

    extype (would be my cpt-onomy that the type of content for each team in the department.... training materials, reports, exercise files etc). I've set up the ttype cpt-onomy and attached it to the content post type. And that seems to be working.

    So at the minute what I'm looking for is a page where all of the content is displayed.. something like this:
    http://127.0.0.1:8080/wordpress/content/

    This seems to be working and this displays all of the posts that I've set up as a CONTENT CPT.

    What I am having trouble with is setting up the slugs for the archives for ttype and extype..

    For example how would I go about setting up an archive for:
    http://127.0.0.1:8080/wordpress/content/team1/reports

    I.e this would only show the content that has been tagged with a CPT onomy of ttype = team1 AND extype = report...

    As I am typing this, I am wondering if this is a CPT query or a wordpress query.. Feel free to tell me to head off if this is a wordpress query and not a CPT query.. Do I need to create the archieve pages for these CPT onomies or just set up the slugs in the settings panel.. I've been through the documentation and support forums and can't see much about archive pages here so I apologise if I've missed this..

    Sorry I am going around in circles.. PS.. If this does what I think it does, you should be charging for the plugin and retire to a nice Caribbean island for yourself

    Paul

    http://wordpress.org/extend/plugins/cpt-onomies/

  2. Rachel Carden
    Member
    Plugin Author

    Posted 2 years ago #

    I'm going to create an archive page tutorial that will hopefully help you out. I'll let you know when it's up and running!

  3. greensween
    Member
    Posted 2 years ago #

    Thanks Rachel.. That would be very helpful as I'm going around in circles..

    You are a legend..

  4. sireneweb
    Member
    Posted 2 years ago #

    me too, and i'm interesting :)
    Can you explain, how we can modify translate in archive page, if there are a function to use with Yoast SOE plugin

  5. TiagoPires
    Member
    Posted 2 years ago #

    If I registered 2 CPTonomies (Course and City) via register_cpt_onomy() in functions.php Has archives pages default to true in register_cpt_onomy() as I read.

    A "Course" is assigned to a "City"

    if i type:

    http://www.example.com/?post_type=course&city=sydney&cpt_onomy_archive=1

    it goes back to the homepage. Also tried to hook

    add_rewrite_rule( '^course/([^/]*)/?', 'index.php?post_type=course&city=$matches[1]&cpt_onomy_archive=1', 'top' )

    and re-saved the permalinks in settings.

    I'll keep trying to figure out how to get to the archive pages.A tutorial would be awesome!

    Thanks again for all your work!

    T.

  6. Rachel Carden
    Member
    Plugin Author

    Posted 2 years ago #

    With CPT-onomies version 1.2, I've simplified custom archive pages. Check out Custom CPT-onomy Archive Pages in the documentation for more information.

    I've had a few users bring up some interesting scenarios that I will look into this week and try to publish an extensive tutorial ASAP.

    Thanks!

  7. TiagoPires
    Member
    Posted 2 years ago #

    Got it to work now updating to 1.2
    Thanks Rachel, fantastic :)

  8. Rachel Carden
    Member
    Plugin Author

    Posted 2 years ago #

    Awesome! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic