echo - Simple php syntax error, needs fixing -
i have code can me category_id of item. code:
<?php echo lavada_category_id() ; ?> i want know how can add together code. within this, want replace number 2 in here;
<?php lavada_query_item("category=2");?> with:
<?php echo lavada_category_id() ; ?> i know cannot
<?php lavada_query_item("category=<?php echo lavada_category_id() ; ?>");?> but how can it?
you need concatenate string this:
<?php lavada_query_item("category=". lavada_category_id() );?> php echo
No comments:
Post a Comment