• I’ve been wrestling with the Asides plugin code for awhile now. I have looked at a variety of index.php files that have been posted, tried to clip and paste what they have and remembering to change the category number so that it is the same as what I have (#25) for the Asides. I’m still getting error messages.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter danithew

    (@danithew)

    Here’s the code I was trying to place into my index.php file:
    < ?php
    if ($posts) {
    function stupid_hack($str) {
    return preg_replace(‘|

    \s*<ul class=”asides”>|’, ”, $str);
    }
    ob_start(‘stupid_hack’);
    foreach($posts as $post) { start_wp();
    ? >
    < ?php if (in_category(25) && !$single) { ?>
    <ul class=”asides”>
    <li id=”p<?php the_ID(); ?>”><?php echo wptexturize($post->post_content); echo ‘ ‘; comments_popup_link(‘(0)’, ‘(1)’, ‘(%)’)?> <?php edit_post_link(‘(e)’); ?>

    < ?php } else { ? >

    Thread Starter danithew

    (@danithew)

    I’ve tried adding this to the mix, above the feedback line in index.php:
    < ?php } // closes printing entries with excluded cats ? >

    Thread Starter danithew

    (@danithew)

    Southerngirl, I’d love to see the code you have got that is working! I’ve tried to follow various threads in here but am still struggling a bit for some reason. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Asides plugin’ is closed to new replies.