I want to check whether the node is published or not .How we can check whether the node is published or not.

Comments

coreyp_1’s picture

do you mean programmatically (as in PHP)?

You can check the published status of a node by examining "status" in the node object (i.e., $node->status). true means published, false means unpublished.

- Corey

ashiwebi’s picture

thanks for help.