PHP in a post

Post Reply
parsiad
Jr. Bludit
Posts: 2
Joined: Thu Jun 02, 2016 7:29 pm

Question for Bluditers: I would like to make a page with some PHP in it (e.g., <?php echo "test"; ?>). However, the sanitization catches it and modifies it by commenting the PHP tags. Is there a good way to get around this?
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

You can use PHP in the theme.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
parsiad
Jr. Bludit
Posts: 2
Joined: Thu Jun 02, 2016 7:29 pm

Thanks!
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

What are the goal to uses PHP inside the posts ?
entropyforever424
Jr. Bludit
Posts: 1
Joined: Wed Sep 28, 2016 12:39 pm

Using PHP in the theme is the best way for doing this.
Post Reply