Select categories based on page id
using b/m code for selecting category based on the page id:
Can you please correct me whats wrong in this code as it not selecting the proper category in get_posts function.
$myposts = get_posts(‘numberposts=10&offset=0&category=$cat’);
- The topic ‘Select categories based on page id’ is closed to new replies.