• Resolved hivizwebsolutions

    (@hivizwebsolutions)


    Suppose I have a Custom Tag. I wish this to only be available to Custom Post Types whose been assigned a Custom Category term.

    Contrived example:
    * CPT: Business. Term: Mario’s Italian, Chicago Doctor
    * CC: Business Type. Term: Restaurant, Health
    * CT: Cuisine. Term: Mexican, Italian
    * CPT “Mario’s Italian” is assigned the Business Type CC “Restaurant” while CPT “Chicaco Doctor” is assigned the CC “Health”. “Mario’s Italian” should have the option of selecting one (or more) of the terms of CT “Cuisine”; “Chicago Doctor” should not.

    Is this possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hard to say exactly how feasible this idea is for certain, if feasible at all, but I do know that it’d take more than just Custom Post Type UI to handle, as we only handle the registration of the content types. Everything else here would be either other plugins or custom solution. Admittedly as well, I don’t have any recommendations of where to look to get started on it either.

    Thread Starter hivizwebsolutions

    (@hivizwebsolutions)

    Thanks Michael,

    I’ve had to resort to a less-than-ideal solution of simply hiding the CT metabox from appearing for those CPT posts that don’t meet the condition via remove_meta_box. So those CPT posts are still registered with the CT, but at least the user won’t have any UI to select a term from the CT to the CPT post.

    Will now close this ticket.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Sometimes, whatever gets the job done.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conditional Custom Tag’ is closed to new replies.