Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //custom recent news menu with specific news category
- //find this following code below in the api.php file
- $query = "SELECT * FROM tbl_news_category c,tbl_news n WHERE c.cid=n.cat_id ORDER BY n.nid DESC, n.news_status ASC LIMIT $limit";
- //change the sql select query function to display specific category
- $query = "SELECT * FROM tbl_news_category c,tbl_news n WHERE c.cid=n.cat_id AND c.category_name = '<CATEGORY NAME>' ORDER BY n.nid DESC, n.news_status ASC LIMIT $limit";
- //note
- //'<CATEGORY NAME>' means your category name, as example, if your category name is 'Entertainment', replace '<CATEGORY NAME>' with 'Entertainment'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement