WordPress as CMS and PHP
Posted in Uncategorized on Jul 9th, 2008
If you’re using WordPress as a CMS and doing some extra coding - for example picking something from an extra db table to display on a certain page, eg page_id=4
$pageVar = $wpdb->get_var(SELECT var FROM my_table WHERE something=’something_else’);
and then you also want to SEO the <title> a little, so in header.php you put:-
<?php if […]