Skip to content
Advertisement

is_page() function not displaying content to specific page ID’s

Im trying to simply just output some HTML onto these 3 specific page-ids that I am referring too in the code below. Does anyone have any ideas as to why this php isn’t working? (its at the bottom of my functions.php file in the child theme.

JavaScript

Any help would be appreciated as to why this ‘test content’ is not appearing on these pages. Thanks!

Advertisement

Answer

Try the below code that will work properly.

JavaScript

===================== or ==========================

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement