{"id":2972,"date":"2008-06-21T13:34:27","date_gmt":"2008-06-21T13:34:27","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/results-count\/"},"modified":"2010-08-14T15:54:26","modified_gmt":"2010-08-14T15:54:26","slug":"results-count","status":"publish","type":"plugin","link":"https:\/\/azb.wordpress.org\/plugins\/results-count\/","author":15733,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.5","stable_tag":"trunk","tested":"3.0.5","requires":"2.0","requires_php":"","requires_plugins":"","header_name":"Results count","header_author":"Matthew Taylor","header_description":"","assets_banners_color":"","last_updated":"2010-08-14 15:54:26","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.elginism.com\/donate\/","header_plugin_uri":"http:\/\/www.mtaylor.co.uk\/development\/resultscount","header_author_uri":"http:\/\/www.mtaylor.co.uk\/","rating":0,"author_block_rating":0,"active_installs":40,"downloads":4726,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.2","0.3","0.4","0.4.1","0.4.2"],"block_files":[],"assets_screenshots":{"screenshot-4.jpg":{"filename":"screenshot-4.jpg","revision":"1539011","resolution":"4","location":"plugin"},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1539011","resolution":"2","location":"plugin"},"screenshot-3.jpg":{"filename":"screenshot-3.jpg","revision":"1539011","resolution":"3","location":"plugin"},"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1539011","resolution":"1","location":"plugin"},"screenshot-5.jpg":{"filename":"screenshot-5.jpg","revision":"1539011","resolution":"5","location":"plugin"}},"screenshots":{"1":"Multiple pages of results for multiple search terms.","2":"A single result for a single search term.","3":"Multiple results on a single page for a monthly archive.","4":"Multiple results on a single page for a yearly archive.","5":"Multiple results on multiple pages for a tag."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3621,442,5122,944,609],"plugin_category":[57],"plugin_contributors":[86535],"plugin_business_model":[],"class_list":["post-2972","plugin","type-plugin","status-publish","hentry","plugin_tags-archives","plugin_tags-count","plugin_tags-results","plugin_tags-search","plugin_tags-tags","plugin_category-taxonomy","plugin_contributors-mat8iou","plugin_committers-mat8iou"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/results-count.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/results-count\/trunk\/screenshot-1.jpg?rev=1539011","caption":"Multiple pages of results for multiple search terms."},{"src":"https:\/\/ps.w.org\/results-count\/trunk\/screenshot-2.jpg?rev=1539011","caption":"A single result for a single search term."},{"src":"https:\/\/ps.w.org\/results-count\/trunk\/screenshot-3.jpg?rev=1539011","caption":"Multiple results on a single page for a monthly archive."},{"src":"https:\/\/ps.w.org\/results-count\/trunk\/screenshot-4.jpg?rev=1539011","caption":"Multiple results on a single page for a yearly archive."},{"src":"https:\/\/ps.w.org\/results-count\/trunk\/screenshot-5.jpg?rev=1539011","caption":"Multiple results on multiple pages for a tag."}],"raw_content":"<!--section=description-->\n<p>Results-Count is a very simple plugin that does exactly what it says on the tin &amp; will count the number of posts that result from operations in Wordpress such as a search, viewing a category, or viewing a monthly archive etc. \nThe purpose of the plugin is to allow you to insert text at the top of your archive &amp; search results pages saying something like: results: 1-10 of 43. It serves the dual purpose of showing the number of results, as well as showing what page you are currently on within those results.<\/p>\n\n<p>For an example of the plugin in use, look at the top of any of the archive or category pages at:\nhttp:\/\/www.elginism.com\/ e.g. http:\/\/www.elginism.com\/archives\/acropolis\/<\/p>\n\n<p>If you have any queries or find bugs, could you please contact me via the contact form on http:\/\/www.elginism.com<\/p>\n\n<h4>Revision history<\/h4>\n\n<ul>\n<li><p>Version 0.5\nFixes possible XSS vulnerability.<\/p><\/li>\n<li><p>Version 0.4.2\nAdds support for Author archives.\nFixes bug where output does not display correctly when there are over 999 results.<\/p><\/li>\n<li><p>Version 0.4.1\nFixes incorrect display for single day archive pages.<\/p><\/li>\n<li><p>Version 0.4\nAlters the text when there is only a single result on the page.\nCorrects bug so that the correct text displays when there is only a single page of results.\nDisplays correct text when a year archive is shown rather than a month.\nTidied up text to fix some grammatical errors.\nVarious non-critical bugs fixed &amp; old code tidied up.\nComments added in the html output to help error tracing, identifying the code produced by the plugin.<\/p><\/li>\n<li><p>Version 0.3\nAdds compatibility with tags (introduced in Wordpress 2.3), so headers will now show up for tag archive results.<\/p><\/li>\n<li><p>Version 0.2\nUpdates the plugin to work with version 2.3 &amp; higher of Wordpress.<\/p><\/li>\n<li><p>Version 0.1\nInitial public release of the code in plugin form.<\/p><\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>results-count.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Place <code>&lt;?php wp_searchheader()?&gt;<\/code> in your templates, where you want the text generated by the Results Count plugin to occur.<\/li>\n<\/ol>\n\n<p>If you want to ensure that the plugin is installed first to stop errors with the template when it is disabled, then instead use the code:<\/p>\n\n<pre><code>&lt;?php if (function_exists('wp_searchheader')) : ?&gt;\n&lt;?php wp_searchheader()?&gt;\n&lt;?php endif; ?&gt;\n<\/code><\/pre>\n\n<p>Which will then automatically check for the plugin before trying to execute it.<\/p>","raw_excerpt":"When you search in Google, it tells you at the start how many results you have &amp; what page you are on in the results. The Results Count plugin giv &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/2972","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=2972"}],"author":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mat8iou"}],"wp:attachment":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=2972"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=2972"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=2972"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=2972"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=2972"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=2972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}