?cat=7 or is it now ?term=7
-
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 multiple posts in that category. In this instance I’m calling the whole category). The sites are just PHP templates with code (below) that makles the following calls to pickup the category(ies) or post(s) where I designate them to appear in the page template:
CATEGORY
<?php include "includes/snoopy.class.php"; $snoopy = new Snoopy; $snoopy->fetch("https://www.blahblah.com/blog/?cat=11"); print $snoopy->results; ?> POST <?php include "includes/snoopy.class.php"; $snoopy = new Snoopy; $snoopy->fetch("https://www.blahblah.com/blog/?p=11"); 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 via 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
- The topic ‘?cat=7 or is it now ?term=7’ is closed to new replies.