Code - InfoExpo

Monday, November 16, 2020

Wordpress Page contents display with if page id condition

Display some contents in certain pages of wordpress only.

Hide contents from some pages.


<?php  if(is_page(14))  {?>


display this.....

<?php  }   ?>

Posted by Sreeraj Melath at 1:55 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Sreeraj Melath
View my complete profile

Blog Archive

  • ▼  2020 (30)
    • ▼  November (8)
      • WP - post content image - keep aspect ratio
      • WP Featured Image and Post Thumbnail
      • Wordpress Page contents display with if page id co...
      • Wordpress Post page designing with code
      • Wp menu code - Navigation menu
      • Wordpress Home URL Button -- Php code
      • Wordpress page template -- landing page
      • Boostrap to Wordpress Convertion notes
    • ►  October (3)
    • ►  September (3)
    • ►  August (10)
    • ►  July (6)
  • ►  2015 (2)
    • ►  December (2)
Simple theme. Powered by Blogger.