• Hi all,

    I have two categories “News” and “Knowledge Exchange”. Both use the single_post.php file for their individual articles. The single_post.php file has a link Index built in to take the user back to the list of articles on the News page. I’d like posts in the Knowledge Exchange category to point back to the Knowledge Exchange category page.

    What PHP if statement can I use in the single_post.php file to ensure that posts in the News category point back to the News page and posts in the Knowledge Exchange section point back to the Knowledge Exchange category page?

    Thanks all!

  • The topic ‘PHP if statement in single_post.php’ is closed to new replies.