Hey Chris, I'm trying to figure something out and it feels like it should be easy but I'm not having any luck.
So basically I have 3 tabs that use a classic javascript DIV Show/Hide to switch between them. Since I'm not switching with URL's I can just use a index.php?id=x solution.
I feel like what I need is an ID variable that I can call right in the php include; like:
Code:
<?php $id = '21'; include 'news/index.php'; ?>
Again, I felt like this would be pretty easy but couldn't get it working...any ideas?
Access: Admin
Total Posts: 1395
Joined: 2006-05-19
Not ideal but it achieves the same results. Create a new category for each of the tabs, tab1/tab2/tab3 or whatever. Then assign each post to an individual category and use the $cat[] array to show only that article
Code:
<?php $cat[] = "tab1"; include 'news/index.php'; ?>