Extra feature settings for post types

On top of being able to add any post type to the main “Blog” posts query, CPTUI-Extended also allows you to add your post types to a variety of other archives or features. These setting can also be found at the bottom of the post type’s add/edit screen when Custom Post Type UI Extended is…

Read More

Removing page title from My Profile BuddyPages

When creating a BuddyPages page that get set to display on “My Profile”, there will be a page title at the top of the content area. However, this may not be desirable for what you are aiming for. If you wish to remove the display of the title completely, the following snippet will help. You…

Read More

Listing posts by post title in WP Admin

If you want to list your custom post type posts in alphabetical order when viewing the WordPress admin area, the following code will help. It should go in your active theme’s functions.php file or a custom plugin. function pluginize_order_cpt_by_title( $query ) { if ( ! is_admin() ) { return; } if ( ! $query->is_main_query() )…

Read More

Including hidden BuddyPress groups in dropdown

Out of box, BuddyPages only includes public groups for consideration when where to assign a given page. The code below will allow for including hidden groups as part of that query. function pluginizehelp_include_hidden_groups( $args ) { $args[‘show_hidden’] = true; return $args; } add_filter( ‘buddypages_groups_get_is_admin’, ‘pluginizehelp_include_hidden_groups’ );

Read More

Understanding and customizing HTML classes added to shortcode output

Reasons you may want to customize classes CPTUI-Extended outputs a number of classes on its markup already, but there may be times or cases where they are not enough, or you are trying to match up the markup to existing styles on your site, and those styles are looking for specific classes. With the filters…

Read More

Adding content after “Default” shortcode items.

The “Default” shortcode comes with twelve different action hooks that you can use to customize displayed content on the page. They are all listed below, and hopefully they are self explanatory. template_posts_before_title template_posts_after_title template_posts_before_item template_posts_before_featured_image template_posts_after_featured_image template_posts_before_item_title template_posts_after_item_title template_posts_before_excerpt template_posts_after_excerpt template_posts_after_item template_posts_before_pagination template_posts_after_shortcode For this tutorial, I am going to show you how you can…

Read More

Save CPTUI settings data to file

If you ever find need to save your Custom Post Type UI settings data to a file, on top of to the database like normal, the following snippet should help you out. This will be particularly useful if you find need to version control the settings, as databases aren’t easy to version control themselves. What…

Read More

Using the Debug Info tab for Custom Post Type UI

If you have used oursupport forums at any time in the past number of years, chances are you’ve received a response from Michael, helping debug whatever issue you were experiencing at the time. Hopefully Michael has proved helpful and resolved a given issue swiftly and timely. However, there are cases where Michael just needed more…

Read More

Displaying post type descriptions

Ever since post type creation became “public” in WordPress 3.0.0 in June 2010, users have been able to provide a description for their post type. However, for whatever reasons that the WordPress core team has, they have never provided an official way to retrieve that description value. Thankfully, the “get_post_type_object()” function provides that value for…

Read More

Cleanly-done pagination with custom WP_Query objects

If you have ever created a custom WP_Query object, chances are you have potentially needed to also provide pagination for the resulting loop and display of posts. Sadly, WordPress core does not make this the easiest to achieve, but it is possible depending on which pagination-based functions you use. This tutorial aims to show how…

Read More