In my blog,i have to add a code to the page.php (a must for me) I added the code and works fine in a specific page which i created but the problem is that,when i added the code all the other pages like contact,privacy policy shows it.I just want to show it in that specific page i created An example:I created a page let's say X.I added this code.<?php if(is_page('5989')){ echo fvCommunityNewsGetSubmissions(30); } ?> to page.php All the pages(contact,privacy policy) effected from this code.I don't want this code to be shown in those pages but only X page Is there a way to exclude that code from other pages not to show it?
Try this: <?php if(get_the_ID()==2){ if(is_page('5989')){ echo fvCommunityNewsGetSubmissions(30); } } ?> Code (markup): Change the number 2 to the ID of the page X.
sorry ruben the added code is <?php if (function_exists('fvCommunityNewsForm')) fvCommunityNewsForm(); ?>
<?php if(get_the_ID()==2){ if (function_exists('fvCommunityNewsForm')) fvCommunityNewsForm(); } ?> Code (markup):