Ecoprintworks Posted January 13, 2009 Share Posted January 13, 2009 Definitely new to PHP – which will no doubt be reflected in the following question. I’m setting up a blog with the following theme: http://equilibrium.madebyon.com/ Mine can be found here: http://ecoprintworks.com/skin1_ecoprintworks/blog/ Instructions for installation tell me the following: To get everything to display correctly, you’ll need open the index.php and look for the commented area which says “Edit Below”. Below that, you’ll see this: <?php query_posts('cat=ID&showposts=2'); ?> Simply change the ID number to reflect whichever category you want to use for the Featured section. Repeat this step twice, as there will be two more lines you need to edit. “Edit Below 2″ & “Edit Below 3″. The code is as follows: <!– Edit Below –> <?php query_posts(’cat=10&showposts=2′); ?> <!– Edit Below 2 –> <?php query_posts(’cat=10&showposts=1&offset=2′); ?> <!– Edit Below 3 –> <?php query_posts(’cat=-10&showposts=8′); ?> My particular “featured” category is cat 3, so I’ve changed all those values to 3. It’s not displaying correctly, so I assume I’m just not understanding the php querys correctly. Apologize for the long winded question. Would love some direction. Thanks Peter Quote Link to comment https://forums.phpfreaks.com/topic/140743-simple-query/ Share on other sites More sharing options...
twitch987 Posted January 14, 2009 Share Posted January 14, 2009 hey peter im not the best person to reply to this post but nevermind.. just thought id give you my 2 cents <!– Edit Below 3 –> <?php query_posts(’cat=-10&showposts=8′); ?> in this section the category is -10 rather than just 10, yet the others arent. replace them all with 3 and make sure the - is gone maybe that'll work Quote Link to comment https://forums.phpfreaks.com/topic/140743-simple-query/#findComment-736639 Share on other sites More sharing options...
Ecoprintworks Posted January 14, 2009 Author Share Posted January 14, 2009 :] thanks twitch... I'll give it a shot and let you know. Quote Link to comment https://forums.phpfreaks.com/topic/140743-simple-query/#findComment-736645 Share on other sites More sharing options...
ngreenwood6 Posted January 14, 2009 Share Posted January 14, 2009 When you say its not displaying correctly what do you mean? It's helpful if when you post you tell us what is not doing that it should be doing rather than just saying its not working. Quote Link to comment https://forums.phpfreaks.com/topic/140743-simple-query/#findComment-736736 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.