Forum Replies Created

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

    (@abberdab)

    To suit my own purposes, I’ve hacked the plugin like so. This is good enough for me, but doesn’t allow for user choice.

    I replaced:

    if ($instance['show_topmost']) {
    wp_list_pages( 'title_li=&include='.$top_page.$link_addons );
    }

    with

    if ($instance['show_topmost']) {
    if (is_page($top_page)) {
    echo '<li class="page_item page-item-'.$top_page.' current_page_item"><a href="' . get_permalink($top_page) . '">Overview</a></li>';
    } else {
    echo '<li class="page_item page-item-'.$top_page.'"><a href="' . get_permalink($top_page) . '">Overview</a></li>';
    }
    }

    abberdab

    (@abberdab)

    Yes! Yes!

    I’ve been combing the archives trying to find something just like this. I also think that when a category only contains one post, one should be able to redirect visitors (upon clicking on the category link) to the permalink for that one item.

    I’m pulling my hair out over this and haven’t found anything like this in the forums. If there is a plugin for this, please let me know!

    I have the same problem as ekp23 and jaacob. I’m glad to see that I am not alone!

Viewing 3 replies - 1 through 3 (of 3 total)