• I would like to create a second footer that is only displayed for posts that have been created and contain a certain character in the title. I can’t seem to figure it out. I am new to php and can’t figure out what I am doing wrong.

    The default post file is single.php which contains a <get_footer>. I am trying to change that php file to have it do the following:

    I want the original footer to display on all posts except for post titles containing the words “ami1” and “pco1”. If it does say “ami1” I want it to call on footer-ami.php and if it says “pco1” I want it to go to footer-pco.php
    I have tried to adapt several other methods found online but can’t get it to work.

    If anyone knows how I can accomplish this I would really appreciate it!

    Thanks in advance!

    Hudson

  • The topic ‘Custom footer for Post Title containing…’ is closed to new replies.