How to exclude an added(to page.php) code from pages?(Wordpr
Posted: Wed Jun 16, 2010 3:03 am
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 below code to page.php
<?php if
(function_exists('fvCommunityNewsForm'))
fvCommunityNewsForm(); ?>
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?
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 below code to page.php
<?php if
(function_exists('fvCommunityNewsForm'))
fvCommunityNewsForm(); ?>
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?