How to add post type to main blog query

One of the features of Custom Post Type Extended is the easy ability to add any post type to the main “Blog” posts query for your website. This setting can be found at the bottom of the post type’s add/edit screen when Custom Post Type UI Extended is active. Once you check that option and…

Read More

Locating a post’s post ID

Often you will find functionality for your site that needs a post ID specified. This may be something provided by your current theme, or a plugin you have installed to manage certain tasks. The issue is that not all of them provide easy ways to look up the associated ID, and leave that up to…

Read More

Managing and viewing network-level post types and taxonomies

Creating and managing items Managing network-level post types and taxonomies is going to be a very familiar process. It is almost exactly the same steps as you are already used to, but is done from the network admin for your multisite installation. To get started with a network-level item do the following steps: Viewing existing…

Read More

Extending the shortcode builder

Potentially being superseded by focus on Block editor experiences, started in version 1.7.0 Registering a shortcode In order to register a new shortcode for the shortcode builder, you need to provide a function callback to the cptui_register_shortcode() function. This will be the function that should be called at the time of display in the shortcode…

Read More

Adding BuddyPages

BuddyPages are added on the front of the site. Site admins can view all BuddyPages from the admin from the top level “BuddyPages” menu item. A site member can get to the BuddyPage creation/editing by visiting the “Pages” menu under user settings on their profile.  Click “Add New” to add a new page.  Enter a…

Read More

Editing BuddyPages

Editing BuddyPages can be done by clicking edit link above a BuddyPage you are viewing or from the Settings -> Pages list.  Any BuddyPage title in the user navigation with a “Pencil” icon is set to draft status. Draft pages only display  to the author of the page.  Note: only an author of a BuddyPage…

Read More

Deleting BuddyPages

BuddyPages are deleted from the edit page screen. Click “Edit” when viewing a BuddyPage. On the lower right you will find a delete link.  Site Admins can edit and delete BuddyPages from the BuddyPages admin menu item. Note: this completely removes the content from the site. if you want to keep a page but not…

Read More

BuddyPages Settings

By default only admins can create BuddyPages. To turn on page creation for all user visit the BuddyPress options page in the Settings menu. Settings -> BuddyPress then click the options tab and find the BuddyPages options section. Click the checkbox Member Pages and save to allow all users to create BuddyPages. BuddyBoss To access…

Read More

Modifying the BuddyPages editor

How to modify the wp_editor instance for BuddyPages. You will need to be familiar with how WordPress filters work. Default values /** * Filters wp_editor args for BuddyPages content editor. * * @since 1.0.0 * * @param array $attributes wp_editor arguments. */ $editor_args = apply_filters( ‘buddypages_textarea_editor_args’, array( ‘teeny’ => true, ‘media_buttons’ => false, ‘quicktags’ =>…

Read More

CPTUI-Extended Compatibility Fixes

Z-index issues with wpDataTables The modal popup appears below the semi-transparent background due to conflicting z-index vaues on a “.ui-dialog” CSS selector. The code below should help fix. Place it in your active theme’s functions.php file. function cptui_mod_css() { ?> <style> .cptui.ui-dialog { z-index: 100102 !important; } </style> <?php } add_action( ‘admin_head’, ‘cptui_mod_css’ );

Read More