Search found 3 matches

by cini
Wed Jun 16, 2010 4:16 am
Forum: PHP - Code
Topic: How to exclude an added(to page.php) code from pages?(Wordpr
Replies: 4
Views: 206

Re: How to exclude an added(to page.php) code from pages?(Wo

Ok got the solution

<?php
if(get_the_ID()==2){
if (function_exists('fvCommunityNewsForm'))
fvCommunityNewsForm();
}
?>


2 is the ID of the page

When i write the ID of the page it only shows on that specific page
by cini
Wed Jun 16, 2010 3:42 am
Forum: PHP - Code
Topic: How to exclude an added(to page.php) code from pages?(Wordpr
Replies: 4
Views: 206

Re: How to exclude an added(to page.php) code from pages?(Wo

Someone told me to try something like this

if(get_the_ID()==2){ .................

2 is the ID of page X
but didn't work
by cini
Wed Jun 16, 2010 3:03 am
Forum: PHP - Code
Topic: How to exclude an added(to page.php) code from pages?(Wordpr
Replies: 4
Views: 206

How to exclude an added(to page.php) code from pages?(Wordpr

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:...