Custom FIeld and the Loop?
-
I was googling to find out how to add the author to my posts (when I am posting it but am not the author) and found a 2 year old post that said to create a custom field and then put this in “The Loop”
$customField = get_post_custom_values(“~YourCustomField~”);
if (isset($customField[0])) {
echo “Author: “.$customField[0];
}I have no idea what they mean. I read that the loop is a place to put custom code I believe? but I cant find The Loop
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom FIeld and the Loop?’ is closed to new replies.