• Resolved meatberg

    (@meatberg)


    Posted this in troubleshooting but since it’s a hack i guess it belongs here. Could use someone’s help, I am sure this is a simple change to my code but for the life of me I can’t get it sorted. Here’s the issue:

    I use WordPress as a backend publishing tool for various sites (see https://www.naturopathy-uk.com/resources/resources-careers/ – Careers is a category in WP with posts in that category. In this instance I’m calling the whole category). The sites are just PHP and make the following call to pickup the category(ies) or post(s) where I designate them to appear:

    CATEGORY

    <?php

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

    $snoopy->fetch(“https://www.blahblah.com/blog/?cat=11&#8221;);
    print $snoopy->results;

    ?>

    POST

    <?php

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

    $snoopy->fetch(“https://www.blahblah.com/blog/?p=11&#8221;);
    print $snoopy->results;

    ?>

    Now this worked fine in everything but 2.3. I upgraded and can now BROWSE, for example, https://www.blahblah.com/blog/?cat=11 (although it defaults to the SEF permalink whereas before it just kept the same string in the address bar), but can no longer call it into the actual page template.

    I rolled WP back to 2.2.2. Now, can anyone tell me, instead of calling ?cat=11, what should I be calling? It ain’t ?term=11, that doesn’t work. Some bright spark must know this, I can post the template code if anyone’s interested.

    Cheers,

    – Rob

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter meatberg

    (@meatberg)

    Adding that this isn’t restricted to Snoopy, it happens using c-U-R-L as well. so it’s not snoopy, not c-U-R-L, not my theme ( i don’t even use a theme other than a stripped out ‘classic’ index.php file). i can still parse and display categories using RSS i.e. https://www.rocheleau.co.uk/feed/?cat=1, but can’t call them as above. anyone??? this has me stumped and there doesn’t seem to be any info on this anywhere – someone else must be having the same problems…?

    Thread Starter meatberg

    (@meatberg)

    ok, this is a hosting related problem. the calls above DO work when tested on another server. i had a feeling but should’ve tested before i posted.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘2.3, Categories (or lack thereof) Snoopy and CMS’ is closed to new replies.