I'm new to Custom Fields, so please bear with me.
I have a lot of "if / else" statements in my Header. My header is the fluctuating update field where I write the newest news that doesn't belong in a post.
However, when a user visits a page, I don't want it to display news, I want it to display an excerpt or description of the Page they are on.
Instead of writing
<?php if ( is_page('about') ) { ?> ... ... ...
<?php if ( is_page('page1') ) { ?> ... ... ...
<?php if ( is_page('page2') ) { ?> ... ... ...
Is there an easier way to have there only be ONE statement in the header using Custom Fields? So that I would input my Page Description in the Custom Field box, and using:
<?php the_meta(); ?> I could call each page's description with one line of code instead of a separate line of code for each page?