StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-10-2010, 03:31 PM
Romea's Avatar
Romea Romea is offline
Registered User
Genesis Member
Pro Plus Member
 
Join Date: Jul 2009
Location: Washington, D.C.
Posts: 130
Default Hard code category widget

I'd like to create a widget that contains a headline link and short excerpts from my "Events" category. I'm not a code writer and I tried the following but it didn't work:

<?php the_category('Events') ?>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_title(); ?><br />

<div class="clear"></div>
<?php the_content_limit(200, "[".__("Read more", 'studiopress')."]"); ?><div style="clear:both;"></div>

} ?>

Any ideas how to make this work? I was using a calendar plug-in that conflicted with my Twitter widget, and this solution (if I can get it going) is my work around. Any help would be appreciated. Thanks!
 

Tags
category, hard code, widget

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard Code Navigation items to url soaringpine General Discussion 2 12-16-2009 08:47 PM
Hard Code Nav Bar Tab wownow General Discussion 1 11-19-2009 04:30 AM
Hard Code or Widgets? jmr927 General Discussion 2 10-16-2009 08:26 PM
Hard Code a Menu Item seventyone General Discussion 3 11-21-2008 10:52 PM
Featured Content - hard code category matpacker General Discussion 5 11-07-2008 10:28 AM


All times are GMT -5. The time now is 07:32 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.