[SOLVED] query_post in sidebar widget area in php code widget thingy
Hi again!
I am really in need of help, I am trying to use the code below to pull the most recent posting content from a category into a left sidebar php widget area Code:
<?php query_posts('category_name=updates&showposts=1'); ?> I have already tried to use the plug-in query posts but it is not letting me style it as I need to for this to work, so I am having to resort to hard coding the left widget. Thank you for your time! BonnBonn |
What do you mean by "hard coding the left widget"?
|
thank you for responding! I appreciate it very much..
First, Hardcoding meaning I am not using a prefab plugin to do what I would like to happen, I am putting actual code in the left side bar widget php widget item. Meaning when I drag it from my widget choices I am putting actual php code and truthfully right now I had to copy and paste my text from the post that I want to use in a text widget for the time being. Second, when you refer to the loop are you talking about the small section I am using or in the center pages loop? Forgive the noob question I want to make sure that we are on the same "code speak page" So to be clear I just need to add Code:
<?php wp_reset_query(); ?> Code:
<?php query_posts('category_name=updates&showposts=1'); ?> BonnBonn |
|
All times are GMT -6. The time now is 11:47 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.