Forums

[resolved] if else statement for excerpt (3 posts)

  1. gbaka
    Member
    Posted 2 years ago #

    I'm trying to make a if else statement for the excerpt tag but I'm not use to php not exactly sure where to start, I wanted if a excerpt equaled to a certain word it would come out with that word but if it was empty it come out with a defualt word the empty part is the part I'm having trouble with

  2. jonradio
    Member
    Posted 2 years ago #

    If you would like to read about it:
    http://www.php.net/manual/en/control-structures.else.php

  3. gbaka
    Member
    Posted 2 years ago #

    nvm i figured it out

Topic Closed

This topic has been closed to new replies.

About this Topic