Dette innstikket er ikkje testa med dei tre siste utgåvene av WordPress. Det kan henda det ikkje blir vedlikehalde lenger, og kan ha problem med nyare versjonar av WordPress.

CPT Descriptions

Skildring

This plugin adds a place to enter a description for your custom post types which you can display anywhere in your theme.

Installasjon

  1. Upload the »cpt-descriptionsfolder to the/wp-content/plugins/` directory
  2. Activate the CPT Descriptions plugin through the «Plugins» menu in WordPress
  3. Use the_cpt_description() or get_cpt_description() to display/use the custom post type description in your theme

Vanlege spm.

How do I display a/the custom post type description?

You can use the function the_cpt_description() to echo the current custom post type description or you can use get_cpt_description() to return the description for use in code.

If you are not on an archive/single custom post type template you can pass the post type variable to either function (eg. the_cpt_description(«books»)) to get the description for that post type.

Omtalar

There are no reviews for this plugin.

Bidragsytarar og utviklarar

“CPT Descriptions” is open source software. The following people have contributed to this plugin.

Contributors

Endringslogg

0.1

  • Initial beta release.