https://github.com/xwp/wp-post-custom-content
Post Custom Content WordPress plugin
https://github.com/xwp/wp-post-custom-content
Last synced: 9 months ago
JSON representation
Post Custom Content WordPress plugin
- Host: GitHub
- URL: https://github.com/xwp/wp-post-custom-content
- Owner: xwp
- Created: 2014-06-09T05:52:28.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-11T12:01:56.000Z (about 11 years ago)
- Last Synced: 2025-04-12T15:07:55.776Z (9 months ago)
- Language: PHP
- Homepage:
- Size: 2.22 MB
- Stars: 2
- Watchers: 66
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Custom (Unfiltered) Content for Individual Posts
=================
This plugin allows you to add (unfiltered) content into one or more fields for individual posts (or other post types) and then place that content into the post body by a short code. You can also have the content of those fields automatically appended to the content of the post.
The fields (textarea) are powered by the [ACE editor](http://ace.c9.io).
#Requirements#
[Same requirements as WordPress](http://wordpress.org/about/requirements/) plus PHP 5.3+
#Configuration#
**Supported Post Types**
By default the custom content fields are added to all public post types that support 'editor' (e.g. posts and pages). If you need to add them to other post types (for example 'event') you can add the following function to your theme's functions.php or a plugin.
```php
function add_additional_post_types( $post_types ) {
$post_types['event'] = true;
return $post_types;
}
add_filter( 'custom_content_post_types', 'add_additional_post_types' );
```
**Short Code**
The default short code is [custom_content]. If you find that it is conflicting with another plugin you can switch it out by adding he following function to your theme's functions.php or a plugin.
```php
function my_custom_content_shortcode_tag( $shortcode ) {
return 'my_custom_not_conflicting_content_shortcode_tag';
}
add_filter( 'custom_content_shortcode_tag', 'my_custom_content_shortcode_tag' );
```