I am using P2 Theme and I am wondering how I would go about creating custom queries in P2 that display posts using the right formatting.
* I would like to create custom queries that function just like some of the p2 theme pages, such as search.php, page.php, or index.php
* I would like the queries to be returned using the same format that one of these p2 theme pages uses to return posts
* Sample custom query:
$today = getdate();
query_posts(‘year=’ .$today[“year”] .’&monthnum=’ .$today[“mon”] .’&day=’ .$today[“mday”] );
* SO: Can I simply place that code somewhere in search.php, page.php, or index.php and have it return what I want?
- The topic ‘p2 theme and custom queries’ is closed to new replies.