Changing posts per page for a post type
By default, post type archives inherit the same posts per page amount as the Reading settings page and the “Blog pages show at most” setting. However, depending on your use case, you may need to change that value just for a given post type. Utilizing the pre_get_posts action hook, you can easily modify the posts…
Read MoreHow to get dashes in post type/taxonomy slugs for URL SEO purposes
As of Custom Post Type UI version 1.13.2, this tutorial no longer applies. That release finalized allowing dashes in your content type slugs. Custom Post Type UI version 1.3.0 introduced JavaScript that enforces underscore characters in slugs. When a user tried to type a dash in the slug field, it gets automatically switched to an underscore. We have…
Read MoreWhich shortcode templates use which CPTUI-Extended template file
All template files can be found in the /wp-content/plugins/cptui-extended/templates folder. Shortcode to embed Template file Notes Default posts.php List list.php Taxonomy List taxonomy-list.php Post Slider slider.php Single Post single.php Only available if selected post type is “Post” Single Page page.php Only available if selected post type is “Page” EDD Product edd.php Only…
Read MoreHow to make CPTUI-Extended show posts with any of selected terms instead of all selected terms.
CPTUI-Extended offers the ability to select terms from multiple taxonomies when setting up some layouts. When you choose terms from multiple taxonomies, the results will only have posts that have each terms. That may be what you want, but what if it is not? What if you want a list of results that have any…
Read MoreCustomizing shortcode templates with CPTUI-Extended
This is only for CPTUI-Extended 1.4.0 or higher With the release of CPTUI-Extended version 1.4.0, our users are now able to fully customize the templates provided with the plugin. If you are familiar with customizing templates the way WooCommerce, The Events Calendar, and similar, you will feel right at home with CPTUI-Extended’s templates. Where to…
Read MoreDuplicating post types and taxonomies registered with Custom Post Type UI
While it was actually not a planned feature, it is possible to use Custom Post Type UI to duplicate post types and taxonomies. If you have a planned list that are all going to have matching or similar labels and settings, then this handy trick will help get you set up quickly. Note: This will…
Read MoreSettings Page
Settings page Dynamic URL slug This setting is for providing the slug to be used for social media profiles. Eg. https://www.mydomain.com/go. This will be what users visit and the WordPress install handles the redirection to the actual intended destination. Internal Redirect This setting is for where, inside your WordPress install, the Dynamic URL should go…
Read MoreSetting InstaGo URLs
Methods to set the URL to send users to with the dynamic URL There are two different types of URLs to send a user to. Internal redirect, and external redirect. Internal redirects are posts or pages within you WordPress installation, and external redirects are destinations outside of your WordPress install. Internal redirect For the internal…
Read MoreHow to add your custom post type to RSS feeds
Out of the box, WordPress does not include custom post types in RSS feeds. Because of this, you need to add the post types to the query yourself. You will add the following snippets to your theme’s functions.php file or if you want, to a custom plugin build just for your own website. Adding all…
Read MoreChange thumbnail size for default shortcode display
When using the “Default” shortcode for CPTUI-Extended, you have the option to output the featured image with each post. By default, CPTUI-Extended uses the “medium” thumbnail size. This may work fine for some, but if you’d prefer to use a different size, you can change it via a filter. You will add the following snippets…
Read More