How do I use WordPress Custom Field to specify content alignment?
I have in the header:
$pagealign = get_post_meta($id, 'pagealign', false);
if (!empty($pagealign) && is_single())
{
if ($pagealign=="center")
{
//how to specify css for #pagecontent within php
}
}
I would recommend setting the result as a variable
share [g+] share [fb] share [tw]
How do I use WordPress Custom Field to specify content alignment?
I have in the header:
Then depending on what exactly you mean by align you can use that variable to define it using inline css…
so Im just guessing text-align