Let A Pro Do IT!’s (LAPDI) Featured Categories plugin allows you to add featured categories with images to your blog’s website. Featured categories have three (3) layouts and include category thumbnails and scrolling category gallery.
Featured Categories to posts and pages by using a shortcode inside your text or evaluated from within your theme. You may override page/post
Featured Categories options with shortcode attributes defined on the plugin’s settings page.
[tsp-featured-categories]– Will display posts with the default options defined in the plugin’s settings page.
[tsp-featured-categories title="Featured Categories" title_pos="below" number_cats="3" taxonomy="category" shrink_fit="Y" cat_ids="5,3,4" cat_type="all" show_text_categories="Y" hide_empty="1" hide_desc="N" max_desc="60" layout="0" parent_cat="3" box_width=500 box_height=300 order_by="count" thumb_width="80" thumb_height="80" before_title="" after_title=""]– Will override all attributes defined on the plugin’s settings page.
BEFORE YOU BEGIN: Requires the installation and activation of LAPDI Easy Dev Latest Version
- Activate the plugin through the
Pluginsmenu in WordPress
- After installation, refer to the
LAPDI Featured Categoriessettings page for more detailed instructions on setting up your shortcodes.
Featured Categorieswidgets can be added to the sidemenu bar by visiting
Appearance > Widgetsand dragging the
LAPDI Featured Categorieswidget to your sidebar menu.
- Add some widgets to the sidemenu bar, Add shortcodes to pages and posts (see Instructions)
- View your site
- Adjust your CSS for your theme by visiting
Appearance > Edit CSS
- Adjust the
Sliding Gallerysettings, if necessary, by visiting
Plugins > Editor, Select
LAPDI Featured Categoriesand edit the
- Manipulating the CSS for
#tsp-featured-categoriesentries changes the gallery and category styles respectfully
I’ve installed the plugin but my posts are not displaying?
- Make sure the folder
/wp-content/uploads/has recursive, 777 permissions
- Make sure you are listing all
parent_catis empty or the
parent_cathas children categories.
- Make sure the folder
What is a taxonomy?
A taxonomy is simply a name given to a group of objects in WordPress. Since this plugin now features multiple taxonomies (other than ‘category’) in version 1.2.8, you can now enter custom taxonomies to display on your web pages.
Which new category taxonomies does the new version 1.2.8 use?
It really depends on how well the plugin author follows protocol. So far we have tested it with WooCommerce product categories and LMS course categories and it works fine. However if the plugin author does not store the course image under the meta_key ‘%thumbnail_id’ you will never be able to display the images for your categories.
I installed the new version 1.2.8 and I entered a category taxonomy but it doesn’t display?
This simply means this category type is not supported.
How do I test different category taxonomies with the new version 1.2.8?
- If your preferred plugin has a ‘Categories’ section for items (ie Events, Videos, Products) and it also allows you to add category details (ie images, description, title) there is a good chance its supported.
- Click on the category, in the browser you will see “?taxonomy=XXX” where XXX is the new category taxonomy you can use.
- Enter this taxonomy in your widget or your shortcode for LAPDI Featured Categories
- If #1 was true but it still doesnt work, it means that the author didn’t follow normal protocals when storing category data and it wont be functional.
How can I display category images at run-time?
You can add similar code to your PHP file. This will display the category title, description and thumbnail at runtime. Remember you can use shortcodes to display category information at design time.
<div class="row" style="margin: 20px 0px;"> <div class="2u"> <?php // get category ID $cat_id = get_cat_ID( single_cat_title(null,false) ); // get options for tsp featured categories $options = get_option('tsp-featured-categories-option-term-data'); // check to see if the category has term data if ( array_key_exists( $cat_id, $options )): if ( $options[$cat_id]['image'] != null ): // display the image ?> <img class="image" src="<?php echo $options[$cat_id]['image'];?>" width="125" height="125" border="0"> <?php endif; endif; ?> </div> <div class="10u"> <h2><?php _e("Browsing category", "site5framework"); ?> / <span><?php single_cat_title(); ?></span></h2> <h4><em><?php echo category_description(); ?></em></h4> </div> </div>
Contributors & Developers
“LAPDI Featured Categories” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
- Enhancement: Requires v2.0.0 of LAPDI Easy Dev
- Require: LAPDI Easy Dev 1.3.5 or higher
- Feature: Added in the ability to use featured categories for custom taxonomies
- Feature: Add ability to hide categories with no images
- Bug: Required update from version 1.2.6
- Fix: Fixed issue with SmoothScroll Gallery
- Fix: Upgraded SmoothScroll Gallery
- Bug: Working on issue with SmoothScroll Gallery
- Enhancement: Improved settings UI
- Enhancement: Using only LAPDI Easy Dev (Pro version no longer available.)
- Enhancement. Option to turn Shrink Boxes to Fit off
- Fixed bug: Fixed bug to handle null options
- Fixed bug: Removed the use of Pro Skeleten which caused pages to default to size of 960px
- Enhancement: Set max width for horizontal display of categories
- Enhancement: Include instructions on how to display categories at runtime
- Enhancement: Allow spaces between commas when listing category IDs
- Enhancement: Replace shortcode setting with shortcode generator
- Fixed bug. Correctly locates LAPDI Easy Dev.
- Fixed bug, incorrect logic with
title_posin readme, config & templates
- New Feature. Added new attribute
title_posfor title placement options.
- New Feature. Category image is now clickable.
- Enhancement. Added new attribute
cat_idsto support specific categories
- Enhancement. Updated support link
- Removed inline function from widget_init hook to support older versions of PHP.
- Required fix to properly load media upload script.
- Required fix to properly store new widget/shortcode attributes into database. (Update to Easy Dev 1.2.2).
- Added back in assets folder
- Fixed issues with encrypted libraries.
- Now uses Easy Dev Pro for easy plugin development, #bringbackOOD
- No longer uses a seperate termsdata table in WP database, all data will be copied over on upgrade
- Handled all PHP notices
- Renamed attributes to prevent red spell checks when editing (old attributes still supported)
- Decreased plugin size by using Easy Dev
- Updated path for smarty compile and cache directories. User no longer required to change directory permissions.
- Fixed bug that caused images to not be added to posts.
- Checks for existence of parent settings menu before overwriting it
- Added in default images. LAPDI Plugins menu icon missing.