Support » Fixing WordPress » Sidebar blog

Viewing 6 replies - 1 through 6 (of 6 total)
  • Okay, I found the solution!!
    I had to change the options from “Posts” to “Posts paged” (or something like that)

    Now I’m having another problem… šŸ˜•
    I used $cat=’-15′ in my index.php to exclude the sideblog category. But when someone clicks the permlink in the sideblog, they get

    Sorry, no posts matched your criteria.

    I know that’s because of the exclusion of the category. I’m not a php guru, can someone help me out with a simple script??
    I tried this:
    if ($cat==15) {
    else {
    $blog='1'; $cat='-15';

    but that doesn’t work… šŸ™

    Thanks for the link, but that’s not my problem. I will try to be more specific. I have one category excluded (because it’s in my sideblog), but when I click the links in the sideblog, it doesn’t show that post (because all posts of that category are excluded). Now I want that when a link is clicked in de sideblog, that post shows up, but those post may not show up on the front page.
    That’s why a need some sort of If … then … else.

    ByteWarrior, try this in your index (or hack file):
    if (‘/’ == $_SERVER[‘REQUEST_URI’] || ‘/index.php’ == $_SERVER[‘REQUEST_URI’]){ $cat = “-cat#”; }

    It doesn’t seem to work. Still the same problem. On the frontpage, all the categories do show up (except cat nĀ°15, because that one is excluded). When I try to open a post from the sidebar, I get a “Sorry, no posts matched your criteria”.
    I’m not a php-guru, but can you explain what the code about should do? Maybe I can figure it out then…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Sidebar blog’ is closed to new replies.