Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Only 1 custom post per category WordPress


1. I'm looking for a function that will allow me to block a custom post being published if it's category has already been assigned to a previous custom post.

2. I want this function wrapped up in a hook/action to be used with WP Front End User Pro (

Answers (2)


Arnav Joy answers:

can you please explain more about your requirement and also show me the site/url ?


Rempty answers:

The 2 usable hooks are triggered after the post is created, maybe you need to find another approach,
if the user save the post with X category(with assigned post) instead of status published save with status draft