Forums

Is there a conditional for no content? (3 posts)

  1. perthmetro
    Member
    Posted 6 months ago #

    is there a way to make a conditional thingy so that IF there is no 'content' in a post THEN ...

    thanks

  2. asechrest
    Member
    Posted 6 months ago #

    Not totally sure, but the global variable $content holds the content of a post.

    So I wonder if you could use if(empty($content)) in some way to check if a post has no content?

  3. perthmetro
    Member
    Posted 6 months ago #

    I'd love to know how to do this as it would be great to be able to fall back on a custom field if there is no content?

Reply

You must log in to post.

About this Topic