BNS Featured Tag
Plugin with multi-widget functionality that displays most recent posts from specific tag or tags (set with user options). Also includes user options to display: Tag Description; Author and meta details; comment totals; post categories; post tags; and either full post, excerpt, or your choice of the amount of words (or any combination).
Download
Latest version: Download BNS Featured Tag v1.9.1 [zip]
Installation
This section describes how to install the plugin and get it working.
- Upload
bns-featured-tag.phpto the/wp-content/plugins/directory - Activate through the ‘Plugins’ menu.
- Place the BNS Featured Tag widget appropriately in the Appearance | Widgets section of the dashboard.
- Set options to personal preferences:
- Widget Title
- Tag Names – separated by commas
- Show (first) Tag Description (checkbox)
- Show Author and date/time details of post (checkbox)
- Show all categories attached to post (checkbox)
- Show all tags attached to post (checkbox)
- Show post in full or use default of post excerpt (checkbox)
or
- Go to ‘Plugins’ menu under your Dashboard
- Click on the ‘Add New’ link
- Search for bns-featured-tag
- Install.
- Activate through the ‘Plugins’ menu.
- Place the BNS Featured Tag widget appropriately in the Appearance | Widgets section of the dashboard.
- Set options to personal preferences:
- Widget Title
- Tag Names – separated by commas
- Show (first) Tag Description (checkbox)
- Show Author and date/time details of post (checkbox)
- Show all categories attached to post (checkbox)
- Show all tags attached to post (checkbox)
- Show post in full or use default of post excerpt (checkbox)
Reading this article for further assistance: http://wpfirstaid.com/2009/12/plugin-installation/
Shortcode: bnsft
Default Parameters:
- ‘title’ => ‘Featured Tag’
- ‘tag_choice’ => ”
- ‘count’ => ’0′
- ‘show_count’ => ’3′
- ‘use_thumbnails’ => true
- ‘excerpt_thumb’ => ’50′
- ‘show_tag_desc’ => false
- ‘show_meta’ => false
- ‘show_comments’ => false
- ‘show_cats’ => false
- ‘show_tags’ => false
- ‘only_titles’ => false
- ‘excerpt_length’ => ”
FAQ
Q. Where can I get support for this plugin?
A. Please note, support may be available on the WordPress Support forums; but, it may be faster to visit http://buynowshop.com/plugins/bns-featured-tag/ and leave a comment with the issue you are experiencing.
Q. Can I use this in more than one widget area?
A. Yes, this plugin has been made for multi-widget compatibility. Each instance of the widget will display, if wanted, differently than every other instance of the widget.
Q. How can I style the plugin output?
A. The plugin uses several “common” WordPress functions that create standard class and id elements that can be styled in the style.css file
- the classes generated by the post_class() function; and, the id generated by “post-” appended to the_ID() function wrap the general post output
- the plugin class
post-detailswraps the general meta details of the post, such as the Author, Categories, Tags, etc. - the overall plugin may also be wrapped in a widget “container” class, or id, specific to the theme itself such as (but not limited to): widget, sidebar, left, right, etc.
As of version 1.9, you may create a custom stylesheet using the name bnsft-custom-style.css; and save it to the BNS Featured Tag plugin folder.
Elements you add into this file will not be overwritten with future plugin updates. With the addition of the display Tag Description option an additional class was written into the plugin.
To style the category description displayed add the class ‘bnsft-tag-desc’ to your bnsft-custom-style.css file then use your choice of properties to style the text, for example:
.bnsft-tag-desc {font-style: italic;}
The following CSS elements are generated by the plugin code:
- .bns-featured-tag
- .bnsft-clear
- .bnsft-content
- .bnsft-link
- .bnsft-tag-desc
Additional style elements may be available but are most likely created through WordPress core functionality, the current active Theme, or another active plugin.
Q. Can I increase the maximum posts to display?
A. As of version 1.6.2 the Total Posts to Display is independent of the “posts per page” setting as set under Settings | Reading.
Changelog
1.9.1
- Removed extra slash in
wp_enqueue_scriptsparameters - Fixed 404 error when ‘bnsft-custom-style.css’ is not available
1.9
- released November 2011
- confirmed compatible with WordPress 3.3
- added PHPDoc style documentation
- added functionality to BNS Featured Tag Custom Excerpt function – see
bnsft_custom_excerpt - added stylesheet to manage plugin specific CSS elements
- added support for bnsft-custom-style.css stylesheet (will not be over-written with updates)
- added i18n support using
bns-fttextdomain - added call to
the_excerptand wrapped post output inbnsft-contentCSS element - added clearing CSS element and
wp_link_pagesafterthe_contentcall - changed
bnsft_first_wordstobnsft_custom_excerpt - cleaned up code organization and optimization
- cleaned up documentation
- fixed ‘only_titles’ form issue
- moved CSS for images wider than widget area from inline to ‘bnsft-style.css’
1.8.5
- released June 2011
- updated additional items in readme.txt (this file)
- re-sized options panel
- re-arranged options panel for better UX / UI in new size
- updated screenshot
1.8.4
- released May 2011
- confirmed compatible with WordPress version 3.2
- addressed some minor items in the readme (this file)
- cleaned up some text strings in the code
- minor variable changes –
load_bnsft_widget(),bnsft_custom_excerpt()
1.8.3
- Confirm compatible with WordPress 3.1 (beta)
- Change ‘the_time’ to date-format option
- Only show number of comments if not password protected
1.8.1
- Fix typo and other minor items in readme.txt file
- Update internal ‘Release Date’ comment
1.8
- released: October 3, 2010
- added post_thumbnail support
- added shortcode support (
bnsft) - version requirements changed appropriately to minimum WordPress version 2.9
1.7.2
- released: July 5, 2010
- added wp_reset_query();
1.7.1
- released: June 13, 2010
- format tag names into tag slugs for use in the query (needs to be further addressed)
- cleaned up code to meet WP Standards
1.7
- compatible with WordPress version 3.0
- updated license declaration
1.6.3
- removed the_ID() function as redundant
1.6.2.3
- compatible with WordPress version 2.9.2
- updated license declaration
1.6.2.2
- clarified the plugin is released under a GPLv2 license
1.6.2.1
- compatibility check for 2.9.1 completed
1.6.2
- Total Posts to Display can now exceed the posts_per_page option value.
- matched version number to BNS Featured Category – future versions should also stay in step
1.6
- corrected issue with checkbox not displaying its state correctly
- minor correction to variable structure to allow for multiple instances of the plugin with independent post counts
- added option to display the description for the (first) tag choice as taken directly from the Tags panel under Posts in the Dashboard
- wrapped Tag Description in its own class: ‘bnsfc-tag-desc’
1.5
- added option to set the quantity of the first words of the post to display instead of the default excerpt.
- modified description to reflect new functionality
- slightly increased the size of option panel to better display controls
1.4
- added version control compared against $wp_version
- added horizontal rule to option panel for clarity
1.3
- code cleanup and error trapping
- added dynamic reference of maximum posts based on blog Settings | Reading “posts per page”
1.2
- code clean up
- changed the_content(__(‘Read more …’)) to the_content() as a more “default” version
1.1
- added option for Post Titles only
- added
1.0
- Initial Release.






26 Comments
Even less custom template work with that plugin. I like what you do
[...] BNS Featured Tag (version 1.4) [...]
Love this plugin and great ideas to use tags. this is fantastic. But… I want to style it – make it really stand out. I don’t understand the info above on styling the plugin output.
What do I need to add to my css to change the style – of the title in particular. (I’m ok with making changes in css provided I know how to identify the right element. Sorry – I know my terminology is all wrong.
@Simon – Thank you for the compliments. The element in your current theme that would be controlling the style of the widget title (and subsequent elements) would most likely be:
li.widget.bns-featured-tag h3 { ... }The exact placement within the Thesis theme style sheet(s) may require additional assistance from the author.
Thanks, that does the job brilliantly. Luckily I’m using the thesis theme, so even I can manage to make changes to it, once pointed in the right direction. Great plugin. Nice blog design too,
@Simon – I’m glad you got it sorted out … and thanks, again
Edward – one more question: I want to add a paragraph return (or css /html equivalent) between each entry to give the whole thing a bit more space – so it doesn’t seem so crowded. I’m not sure how to do this, however. Can it be done in the CSS? Or do I need to edit the plugin somehow? I have already done this – removing the ‘strong’ attribute on the post titles.
@Simon – This element should affect the spacing between the posts being displayed:
li.widget.bns-featured-tag .post { ... }Try using the ‘margin-bottom’ property.
PS: I would not have suggested editing the plugin code itself, but now that you have you may be on your own with future updates.
hi,
can i use this plugin, in a static page. there is a funciotn to call?
es: [BNS Featured Tag (some option....)]
Can I call this funcion to display, in a statics page, for example:
10 recent post DECRESCENT
with tag=”….”
with title
with post
with permanent link
with the author
ecc
ecc.
thanks
great job
@Carlo – Thank You! If you look inside the plugin at the code you will find all the function call it makes, but if you are trying to use the plugin on a “static” page outside of the WordPress installation you will need to add more code to allow for the function(s) to be called.
please … tell me …
i use WP, but i’m so ??? with PHP and function ()
can i use shot code in WP static page?
Thanks again
@Carlo – There are no shortcodes generated by the plugin. If you want me to review this further please see my WordPress Services page.
PS: I edited your comment replacing, in my opinion, an inappropriate word with ??? Please consider this page viewable by all ages and write accordingly. Thank you. EAC
I’m sorry
google translate is not perfect.
Thanks a lot
Hi,
very interesting plugin. My question is: can you use it in a specific post to create a tag-based list of posts (like a table of contents)
Thanks Thomas
@Thomas – The shortcode functionality that was recently added mimics almost all of the potential of the widget functionality. I would expect it is possible provided you set the correct parameters … I’d be interested in knowing how it works out for you.
Great plugin, thanks! Would it be possible to add a link at the bottom of the widget or after the element? Visitors can click the title, but that may not always be so obvious to some
Thanks again
@Uche – I believe I have a working solution to the idea you have suggested, but it needs more testing before I release it to the repository. If you are interested in a beta version drop me a note and I will forward the files to you … or any other readers that may be interested.
* Sorry that should have said “or after the excerpt” not element
@Uche – Thanks for the compliment. Currently the plugin displays an “excerpt” that follows the standard output of `the_excerpt()` function. There may be a simple modification to consider for it, I will have to add it to the plugin’s REVIEW list of items.
Thank you for the great plugin. It really does it’s job very well. I have one feature request for an upcoming version perhaps: it would be nice when the plugin (widget) could sort the posts in another order than the default.
On my site I’m reordering the posts using a hack in the code on line 181 (version 1.9):
query_posts( “tag=$tag_choice&posts_per_page=$show_count&orderby=date&order=ASC” );
The &orderby=date&order=ASC is added. This extra sorting function could also be a checkbox in the widget i presume.
Eelco´s last post … Geen gelopen koers
@Eelco – Thank you for choosing BNS Featured Tag and for the feedback. I will definitely look into this idea.
thanks for this cool plugin. one tiny little issue … if you don’t have a custom style sheet the plugin will create a 404 not found error link.
thanks again … excellent plugin.
@max – Thanks. I’ll have that fixed in the next update. It will be on GitHub shortly …
@max – There is a “fixed” version now on GitHub: https://github.com/Cais/bns-featured-tag (version 1.9.1-alpha)
The changes are in the `BNSFT_Scripts_and_Styles` function which can be edited into your active version … the update to the WordPress version may still be a day or two away as I look for any other items to address.
I am having difficulty getting the shortcode to work. I am using
But this is showing posts that do not have this tag. Also, thumbnails are not showing. If I use the shortcode for bnsfc then it works fine…but I want to key off of tags.
Regards,
Bill
@Bill – The shortcode parameters you are using appear fine but there is no need for commas between the parameters. Give it a try without them.