Are you looking for a way to register a new plugin? While there’s probably a plugin for this, we have created a quick code snippet that you can use to archives display all post types in WordPress.
All you have to do is create a new PHP file and add it to
wp-content/pugins/. Then add the code in the top of the file.
/* Plugin Name: Plugin Name Plugin URI: http://example.com/the-plugin Description: A brief description of the Plugin. Version: 1.0 Author: Your name Author URI: http://example.com License: GPL2? */
Go to Plugins in WP Admin and activate the new plugin!
Note: If this is your first time adding code snippets in WordPress, then please refer to our guide on how to properly add code snippets in WordPress, so you don’t accidentally break your site.
If you liked this code snippet, please consider checking out our other articles on the site like: 9 best WordPress auction plugins to built the next eBay and how to secure your WordPress forms with password protection.
Comments Leave a Reply