开发者 | r0bsc0tt |
---|---|
更新时间 | 2018年1月3日 04:21 |
PHP版本: | 4.3.1 及以上 |
WordPress版本: | 4.9.1 |
版权: | GPLv2 |
版权网址: | 版权信息 |
The plugin uses the default single.php and taxonomy.php or archive.php to display a single project and a client archive. Add single-ezproject.php to your theme for a single project. Add taxonomy-ezproject_clients.php to your theme for the client archive that shows all projects for a client.
The plugin creates a custom post type called Projects with a taxonomy or Clients. You can add a client as a user, so that they are able to login to the website. When you create the users, they are added to the Clients taxonomy for the projects post type. You create a project just like a post, and select the clients you want to show the project to like you would a tag on a post. A PHP if/else statement checks for the user to be either admin or logged in with a user display name that matches the taxonomy terms selected to display the current project.