Hi all,
I have released version 1.4 of Entries Number plugin.
In this release:
1) Added possibility to use “&” in “category” parameter values. Using this symbol you can get entries each of which was posted into all specified categories, e.g. category=“3&6&8” will get entries each of which was posted into category “2”, into category “6” and into category “8”.
2) Fixed bug - entries number being equal to “0” when “status” parameter has a value consisting of two strings and space symbol between them.
3) Fixed bug - entries posted into several categories being counted several times.
Everyone who uses this plugin is recommended to upgrade.
Hi Laisvunas,
I just noticed that it is counting entries for me that are expired. I added this as a parameter show_expired=”no” and it didn’t work. I guess that parameter isn’t recognized.
Would it be possible to have by default that expired entries are not counted? or perhaps that you can allow for this conditional to work?
I’m So close…
Thanks!
Hi Laisvunas,
I just discovered this plugin tonight. It’s a gem 😊
Like a couple others so far, I have a request to add an additional parameter. For a project I’m currently working on, we need to show {entries_number} based on the Author. Would it be possible to include author_id=”“.
Thank you so much!
Here’s another example of it’s use that I came up with a couple mins ago. I didn’t see it listed anywhere here so I figured it might help another person.
This is if you want to add how many entries are in each of your categories listed on a sidebar. It’s what I do on my website.
{exp:weblog:categories weblog="WEBLOG" style="nested" class="categories"}
<a href="http://{path=TEMPLATE_GROUP/TEMPLATE}" title="View all posts filed under {category_name}">{category_name} ({exp:entries_number category="{category_id}" weblog="blog"}{entries_number}{/exp:entries_number})</a>
{/exp:weblog:categories}
Hi all,
Thanks for good suggestions.
I have just released version 1.6. In it a new parameter - author _id - was added. This parameter allows you to specify author id number. You can use the pipe character to get entries posted by any of those authors, e.g. author_id=“5|11|18”. Or you can add the word “not” (with a space after it) to exclude authors, e.g. author_id=“not 1|9”.
Hi Laisvunas,
I’ve downloaded 1.6 and I’m experiencing a couple issues. I’m trying to use the newly added Author=”” parameter and it’s not working for me. I’m getting the total count, not the total count by that author.
Here is an example of what I’m using:
{exp:entries_number weblog="contest_entries" author="903" status="Accepted|Pending" invalid_input="silence"}
{entries_number}
{/exp:entries_number}
Also, I’m getting the following error message printed to the top of page:
$todo: SELECT exp_weblog_titles.url_title, exp_weblog_titles.title, exp_weblog_titles.entry_id, exp_weblog_titles.status, exp_weblog_titles.expiration_date, exp_weblog_titles.author_id, exp_weblogs.blog_name FROM exp_weblog_titles, exp_weblogs WHERE exp_weblog_titles.weblog_id=exp_weblogs.weblog_id AND exp_weblogs.blog_name=’contest_entries’
ExpressionEngine 1.6.6 - Build: 20081114
Any thoughts on this? Thanks.
Hi Stephen,
I’m getting the following error message printed to the top of page…
Oops! I somehow forgot to comment out some echo statements. Grab the new file I just uploaded.
I’m trying to use the newly added Author=”” parameter and it’s not working for me.
You should use not “author” parameter, but “author_id” parameter.
Hi Stephen,
You can donate some bucks to the author of the excellent PSPad editor here.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.