![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
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 | |
|
|
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 |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us