-4

I would like to add a small line of php to a post that already exists in WordPress im aded the code but after im publish it the code automatically convert to comment :

this that im add : code

and this what i get :
pic 2

mega6382
  • 9,211
  • 17
  • 48
  • 69

1 Answers1

0

You can use the shortcodes, add some lines to the file functions then use the shortcode into your post

add_shortcode( 'php_code', function(){
echo "hello world";
} );

then use the [php_code] into your post