About foreach argument
-
Can you please help me guys. I want to get data from database and put it inside a link. all i get is errors. here’s my code
<?php
global $wp_query;
$postid = $wp_query->post->ID;$links = get_metadata(‘post’,$postid,’vlink_1′,’false’);
foreach($links as $link)
{
echo “title of the link“
echo “
“
}
?>I want to add my 7 database inside a link.
example:
Link1
Link2
Link3
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘About foreach argument’ is closed to new replies.