php - Pass a variable through a function parameter -
i'm trying insert output of "get_custom_field_value" id of wp_table function.
my syntax must wrong, because isn't working.
$menu = get_custom_field_value('menu-id', true); wp_table_reloaded_print_table( "id=$menu&use_tablesorter=true&print_name=false" );
try
$menu = get_custom_field_value('menu-id', true); wp_table_reloaded_print_table( "id=" . $menu . "&use_tablesorter=true&print_name=false");
if doesn't work yet, try
print_r($menu);
to see, menu looks like.
Comments
Post a Comment