WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: CPT-onomies] Use top level / parent pages only (Hide child pages)

[Resolved] [Plugin: CPT-onomies] Use top level / parent pages only (Hide child pages)

  • Hiya – loving this plugin so far. I think it has the potential to really simplify what has quickly become a maze of interconnecting taxonomies and post-types within my site!

    I have a question I hope someone can solve.

    Is it possible to use only the top-level or parent pages of a CPT as items within the CPT-onomy taxonomy?

    In my scenario, I have a CPT called <branch>. (In this example branches are regional offices of an organisation).

    Each <branch> post has 2 (or more) child posts (news and case studies etc), which are all part of the same CPT.

    ie.
    -Oxford
    >News
    >Case studies

    -London
    >News
    >Case studies

    -Manchester
    >News
    >Case studies

    There are currnetly approx 20 branches.

    I’ve created a new CPT-onomy tax using the <branch> CPT.
    However when I view the new CPT-onomy on a post edit page I’m presented with the full heirarchy of the CPT-onomy (I guess as you’d expect).

    I’d like to find a way to using only the top level pages of the <branch> CPT in the CPT-onomy and ignore or hide all of the repetitive ‘News’ and ‘Case Studies’ terms from the CPT-onomy.

    Is it possible? Does the above make any sense?

    I’d be really grateful for any help. Many thanks!
    Stef

Viewing 4 replies - 1 through 4 (of 4 total)
  • Rachel Carden

    @bamadesigner

    Stef,

    Hi! I’m glad you’re loving CPT-onomies. Currently, there is not a way to do this BUT there will be in the next version.

    I have added a filter that will allow you to remove terms from the “edit page” results. I will add something that will help you test if the term is a parent or not.

    Thanks!

    Hi Rachel
    wow – Super speed reply. Thanks 🙂
    That’s really great news that it’s going to be included in the future.

    This is the kind of question I guess every dev really doesn’t want to hear, so feel free to tell me to get lost, but do you have a loose ETA / guesstimate when your next release might be?

    Wondering if I should look for alternate ways to complete my goals in the meantime or whether I should hang on for a month or two? (I’m really hoping the latter! ;o)

    Rachel Carden

    @bamadesigner

    I’m hoping for next week sometime. It’s gonna be a small update. Just want to get a few things out there so I can then focus on some big stuff.

    Awesome.
    I won’t hold you to it, but want to say thanks in advance. 🙂
    I’ll mark this resolved for now.
    Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: CPT-onomies] Use top level / parent pages only (Hide child pages)’ is closed to new replies.
Skip to toolbar