plugin showing other posts
-
Hi!
I have a problem. On my sports site, I use Wp All Import to generate posts for clubs pages, in which I use the plugin like this, to display news related to a certain club:
[catlist name=”{here goes team category}” orderby=date order=desc numberposts=6 excerpt=yes excerpt_size=30]
Since there are hundreds of clubs, not every club has news, so the category is not yet created, but since I don’t want to edit manually all the club’s pages after I publish news, I’ve decided to generate all clubs pages with the code above.
Now, this code shows the latest posts from all categories:
[catlist name=”{here goes team withouth a category yet}” orderby=date order=desc numberposts=6 excerpt=yes excerpt_size=30]So, the plugin displays posts correctly when it finds something in a category, but it displays the latest posts from all categories when it cannot find a category. How can I show nothing when there’s not yet a category?
Thank you
- The topic ‘plugin showing other posts’ is closed to new replies.