Ok I just worked up an alternative. I wanted to be able to have linkblog style posts, on a per category basis instead of putting them all into a general links category. Using 1.2RC and the custom meta fields:
- First I created a key named URL, and the value entered is a fully qualified website address (Including the http://)
- Second I created a key name LB, and I'm using this like a toggle switch. In other words, if an entry is supposed to be for the "linkblog", I enter a value here of "Yes"
Then, in my index.php page, just under divclass=storycontent, I made these modifications...
<?php //testing
$link=get_post_custom_values('URL');
$LB=get_post_custom_values('LB');
if ($link[0]&&$LB[0]){ // if there's a link attached and LB is yes ?>
» "><?php the_title(); ?><?php remove_filter('the_content', 'wpautop');
the_content('Details...', '', ''); ?>
<?php }else{ // do regular stuff ?>
<b class="storytitle" id="post-<?php the_ID(); ?>">» " rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></b>
<div class="meta"><?php edit_post_link(); ?></div>
<?php
remove_filter('the_content', 'wpautop');
the_content('Details...', '', '');
the_meta();
?>
<?php }//end else ?>
Seems to be working well :) Thoughts? Foresee any future problems from it?
- Kathy