WordPress.org

Support

Support » How-To and Troubleshooting » Snoopy and Category ID no longer works

Snoopy and Category ID no longer works

  • 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

Viewing 1 replies (of 1 total)
  • 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).

Viewing 1 replies (of 1 total)
  • The topic ‘Snoopy and Category ID no longer works’ is closed to new replies.
Skip to toolbar