开发者 | cais |
---|---|
更新时间 | 2016年3月14日 01:59 |
捐献地址: | 去捐款 |
PHP版本: | 3.6 及以上 |
WordPress版本: | 4.5 |
bns-featured-category.php
to the /wp-content/plugins/
directoryYou will need to use an FTP client to add the /bns-customs/
folder under the /wp-content/
folder, then place your bns-custom-style.css
file in the /bns-customs/
folder.
/bns-customs/
folder?The /bns-customs/
folder will be used as an update safe location for all plugins I write.
As most of these plugins use the "BNS" designator, the folder name will make it easier to locate your customizations.
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.
The plugin uses several "common" WordPress functions that create standard class and id elements that can be styled in the style.css file
post-details
wraps the general meta details of the post, such as the Author, Categories, Tags, etc.bnsfc-custom-style.css
; and save it to the BNS Featured Category plugin folder.
Elements you add into this file will not be overwritten with future plugin updates. With the addition of the display Category Description option an additional class was written into the plugin.
To style the category description displayed add the class 'bnsfc-cat-desc' to your bnsfc-custom-style.css file then use your choice of properties to style the text, for example:
.bnsfc-cat-desc {font-style: italic;}
As of version 1.6.2 the Total Posts to Display is independent of the "posts per page" setting as set under Settings | Reading.
BNS_Feature_Category_Widget
to BNS_Featured_Category
BNS_Featured_Category::custom_excerpt
with wp_trim_words
textdomain
from bns-fc
to bns-featured-category
readme.txt
bnsfc-container
wrapper CSS elementbnsfc-widget-title
classbnsfc_no_posts_message
hook to no posts messageplugin_data
methodreadme.txt
documentationbnsfc_query
allowing the query arguments to be over-writtenbnsfc_output
allowing the entire output to be over-writtenbnsfc_link
to allow the infinity symbol to be more easily changedshortcode_atts
for automatic filter creationquery_posts
to WP_Query
get_the_excerpt
to be used as the basis of the custom excerpt stringBNS_Options_Scripts_and_Styles
*-toggle
variables for collapse effectcurrent_theme_supports
check for post-thumbnails
; no support = no thumbnail optionswp_enqueue_scripts
parametersbnsfc-style.css
for plugin specific elementswp_link_pages
after the_content
bnsfc_first_words
to bnsfc_custom_excerpt
(refactored documentation)bns-cat-class-
to bnsfc-cat-class-
CSS prefix for category choices for consistencyload_bnsfc_widget()
, bnsfc_custom_excerpt()
<div style="overflow-x: auto">
wrapper to allow for images wider than the widget area