How can I include PHP-Code to my post?

You can edit the single.php and/or content-single.php files in your theme.

Then it depends what you mean by “some”. You could apply some conditions to your code (only certain categories, certain tags, certain specific post IDs only, etc.)

You could also create a custom post type “myspecialposts” and create single-myspecialposts.php (codex)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)