WordPress.org

Ready to get started?Download WordPress

Forums

Snoopy and Category ID no longer works (2 posts)

  1. meatberg
    Member
    Posted 6 years ago #

    All versions pre 2.3 I used this code to call a category or a post in a .php file (or view in a browser):

    CATEGORY

    <?php

    include "includes/snoopy.class.php";
    $snoopy = new Snoopy;

    $snoopy->fetch("http://www.blahblah.com/blog/?cat=11");
    print $snoopy->results;

    ?>

    POST

    <?php

    include "includes/snoopy.class.php";
    $snoopy = new Snoopy;

    $snoopy->fetch("http://www.blahblah.com/blog/?post=11");
    print $snoopy->results;

    ?>

    All worked fine. From what I can see here 2.3 no longer uses ?cat=11 and ?post=11. What should I be calling? Changed this live and now trying to roll back as all posts and categories no longer showing! Need your help!

    - Rob

  2. meatberg
    Member
    Posted 6 years ago #

    sorry, for post i used

    POST

    <?php

    include "includes/snoopy.class.php";
    $snoopy = new Snoopy;

    $snoopy->fetch("http://www.blahblah.com/blog/?p=11");
    print $snoopy->results;

    ?>

    i can still browse categories and posts using this method, but can't get snoopy to recognize when i imbed the call in a site page (i use WP as a backend publishing tool, just use the above code to call the content of a category or post into a page).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.