I am writing a very simple code to list links based on category passed read from meta data of a post. If I hard code the category in the wp_list_bookmarks funct, it works fine but when i pass as a variable, it fails and shows a blank screen. below is the piece of code.
$category = get_post_meta($posts->ID, ‘Category’, true);
$album = get_post_meta($posts->ID,’Album’,true);
if ($category == “MusicAlbum”)
echo (“inside if”);
- The topic ‘wp_list_bookmarks fails if argument is $varname’ is closed to new replies.