I am inside a while loop.
Different categories are displayed with their name and id in a list.
Then I need to query each category and get a item title from there.
This query is not working although the function osc_category_id/name is changing accordingly.
Or am I doing it wrong?
while (osc_has_categories ());
// check category id and name inside while loop is ok!
echo osc_category_id(), ": ", osc_category_name() ;
echo "<p>results:</p>" ;
// query_items inside the while loop after category is changed.
// note: "studio" - show results from "studio" BUT everywhere,
// note: osc_category_name() - show ALL results from ALL categories AND everywhere,
// note: "$osc_category_name" - show ALL results from ALL categories AND everywhere,
osc_query_item ("studio") ;
// check if items present
while ( osc_has_custom_items() ) {
// echo result
echo osc_item_title () ;
}
// reset query
osc_reset_custom_items () ;
Please help!