• Hey all,

    I’m looking for some help and haven’t found anything by searching here on via Google. Essentially what I want to do is on one of my Pages, where I use a specific page template, check the content of the entry, if it is blank, I want to output default text through a conditional statement. However, if the page that I created using the template has content I want to display that content.

    To put it another way:

    If the page does not have content

    Display the default content (hard coded into the template)

    If the page does have content

    Display the page content

    I guess what I need to do is to check whether or not the $post_content is null/blank or not and then execute the conditional statement, but so far nothing that I have tried has worked. Anybody have any ideas on how I can pull this off? Any help or thoughts on getting me started would be really appreciated.

    Thanks
    Dave

  • The topic ‘The Loop, Conditional Statements and Default Text’ is closed to new replies.