|
my original intention is that first showing my favorite images(specified category) in the front page,and then visitors can choose to go into my blog site which is ordered by datetime(normal PP). So I'm thinking how to automatically show category image when the first page loaded.
and GeoS gave me a suggestion adding this:
if(!isset($_GET["category"])) $_GET["category"] = My_category_id ;
it works,but when I want to show images ordered by datetime without any category,it always goes to the specified category.
and the above code from Geos give me inspiration, and find codes in index.php, so add like this:
if (!isset($_GET['showimage']) && !is_numeric($_GET['showimage']) && !isset($_GET["category"]))
{
if(!isset($_GET["category"])) $_GET["category"] = My_category_id;
}
Have fun.
Thanks again,GeoS.
|