Descrizione
Simple Custom Content (SCC) enables you to add custom content to all of your WP Posts and RSS Feeds. Additionally, SCC provides several shortcodes for adding custom content to individual Posts, Pages, or any location in your theme template. This plugin is ideal for adding copyright information, official policies, disclaimers, credits, thank-you messages, custom links, special offers, and anything you can imagine.
Features
- Custom content can be text and/or markup
- Display custom content automatically on all WP Posts
- Display custom content automatically on all RSS Feeds
- Optionally display custom content only in Post Excerpts
- Optionally display custom content only in Feed Excerpts
- Provides setting to reset all plugin options to default values
- Provides Shortcodes to add custom content to Posts and Pages
- Specify location of custom content (before or after content)
- Works perfectly with or without Gutenberg Block Editor
- NEW! Option to limit custom content to WP Posts
- NEW! Option to allow custom content on WP Pages
Automatic Custom Content
For each of the automatic inclusion methods (WP Posts and RSS Feeds), you can specify where you would like to display the custom content:
- Prima del contenuto
- Dopo il contenuto
- Both before and after
- Do not display (disable)
Post-Specific Custom Content
Here is a summary of the SCC Shortcodes, which may be used to display your custom content based on where it is viewed:
[scs_post]
– display custom content for single posts[scs_feed]
– display custom content for RSS feeds[scs_both]
– display custom content for single posts & feeds[scs_alt]
– displays content wherever shortcode is included
Dynamic Post Shortcodes
Customize your content with any of the following post variables:
%%id%% = Post ID
%%date%% = Post Date
%%title%% = Post Title
%%author%% = Post Author
%%permalink%% = Post URL
%%year%% = Current year
You can use any of these shortcut variables in any of your custom content. More info provided in the plugin settings.
Check out the screenshot to get a better idea of how it works.
Privacy
This plugin does not collect or store any user data. It does not set any cookies, and it does not connect to any third-party locations. Thus, this plugin does not affect user privacy in any way.
Simple Custom Content is developed and maintained by Jeff Starr, 15-year WordPress developer and book author.
Support development
I develop and maintain this free plugin with love for the WordPress community. To show support, you can make a donation or purchase one of my books:
- The Tao of WordPress
- Digging into WordPress
- .htaccess made easy
- WordPress Themes In Depth
- Wizard’s SQL Recipes for WordPress
And/or purchase one of my premium WordPress plugins:
- BBQ Pro – Super fast WordPress firewall
- Blackhole Pro – Automatically block bad bots
- Banhammer Pro – Monitor traffic and ban the bad guys
- GA Google Analytics Pro – Connect WordPress to Google Analytics
- Simple Ajax Chat Pro – Unlimited chat rooms
- USP Pro – Unlimited front-end forms
Links, tweets and likes also appreciated. Thank you! ๐
Installazione
Installation
- Upload the plugin to your blog and activate
- Visit the settings to configure your options
More info on installing WP plugins
Example
For example, to display a copyright statement, you can add something like this:
<p>Copyright %%year%% My Company dot com</p>
You can add that snippet to any of the “Custom Content” settings. So you can include it on posts, pages, feeds, and in the header and/or footer, or exactly wherever is required.
Simple Custom Content enables automatic and post-specific custom content. Both of these are discussed below.
Automatic Custom Content
To display your custom content automatically, visit the “Automatic Custom Content” settings. There you can enter custom content for WP Posts and RSS Feeds. And for each, you have the following options:
- Prima del contenuto
- Dopo il contenuto
- Both before and after
- Do not display (disable)
Check out the plugin settings for more infos.
Post-Specific Custom Content
To display custom content only on specific posts, visit the “Post-Specific Custom Content” settings. There you can define custom content for any of the following shortcodes:
[scs_post]
– custom content for single posts[scs_feed]
– custom content for RSS feeds[scs_both]
– custom content for single posts and feeds[scs_alt]
– content wherever shortcode is included
You can add any of these shortcodes to your posts, pages, or any custom post type. Visit the plugin settings for more infos.
Dynamic Post Shortcodes
Customize your content with any of the following post variables:
%%id%% = Post ID
%%date%% = Post Date
%%title%% = Post Title
%%author%% = Post Author
%%permalink%% = Post URL
%%year%% = Current Year (e.g., for copyright)
You can use any of these shortcut variables in any of your custom content. More info provided in the plugin settings.
Like the plugin?
If you like Simple Custom Content, please take a moment to give a 5-star rating. It helps to keep development and support going strong. Thank you!
Upgrades
To upgrade SCC, remove the old version and replace with the new version. Or just click “Update” from the Plugins screen and let WordPress do it for you automatically.
Note: uninstalling the plugin from the WP Plugins screen results in the removal of all settings from the WP database.
Restore Default Options
To restore default plugin options, either uninstall/reinstall the plugin, or visit the plugin settings > Restore Default Options.
Uninstalling
Simple Custom Content cleans up after itself. All plugin settings will be removed from your database when the plugin is uninstalled via the Plugins screen.
FAQ
-
How do I change the priority of the custom content filter?
-
You can use the
scs_content_priority
filter hook, for example you can add the following code via your theme functions.php, or add via custom plugin:function scs_custom_content_priority() { return 999; } add_filter('scs_content_priority', 'scs_custom_content_priority');
This can help if you want to display your custom content at the very end of the post, after any content that may be added via other plugins, etc.
-
Questions? Feedback?
-
Send any questions or feedback via my contact form. Thanks! ๐
Recensioni
Contributi e sviluppo
“Simple Custom Content” รจ un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.
CollaboratoriTraduci “Simple Custom Content” nella tua lingua.
Ti interessa lo sviluppo?
Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.
Changelog (registro delle modifiche)
If you like Simple Custom Content, please take a moment to give a 5-star rating. It helps to keep development and support going strong. Thank you!
20230713
- Streamlines file path variable
- Improves logic of several functions
- Improves support panel logic
- Updates default translation template
- Tests on WordPress 6.3 (beta)
20230228
- Improves responsive styles
- Improves logic when calling
get_current_screen()
- Moves WP Resources panel to its own function
- Removes SES Pro from WP Resources panel
- Tests on WordPress 6.1 + 6.2 (beta)
- Tests on PHP 8.1 and 8.2
20220928
- Improves handling of
$allowedposttags
- Reformats plugin code for better readability
- Renames plugin functions for greater specificity
- Adds custom footer text to plugin settings
- Improves plugin documentation
- Updates “Show Support” panel
- Updates translation template
- Tests on WordPress 6.1
20220517
- Tests on WordPress 6.0
20220117
- Updates support panel
- Improves loading of translations
- Updates some links to external resources
- Changes minimum required WP version to 4.6
- Tests on WordPress 5.9
20210717
- Tests on WordPress 5.8
20210210
- Tests on WordPress 5.7
20201114
- Fixes some PHP warnings
- Tests on PHP 7.4 and 8.0
- Tests on WordPress 5.6
20200808
- Refines plugin setting page styles
- Refines readme/documentation
- Tests on WordPress 5.5
20200317
- Adds shortcode
%%permalink%%
to display the post URL - Tests on WordPress 5.4
20191105
- Updates styles for plugin settings page
- Tests on WordPress 5.3
20190902
- Updates some links to https
- Generates new default translation template
- Tests on WordPress 5.3 (alpha)
20190501
- Bumps minimum PHP version to 5.6.20
- Tweaks plugin settings screen content
- Updates default translation template
- Tests on WordPress 5.2
20190309
- Improves function
scs_plugin_action_links()
- Tweaks plugin settings screen UI
- Generates new default translation template
- Tests on WordPress 5.1 and 5.2 (alpha)
20190220
- Tests on WordPress 5.1
20181116
- Adds homepage link to Plugins screen
- Updates default translation template
- Tests on WordPress 5.0
20180820
- Tweaks appearance of the plugin settings page
- Adds
rel="noopener noreferrer"
to all blank-target links - Updates GDPR blurb and donate link
- Regenerates default translation template
- Further tests on WP versions 4.9 and 5.0 (alpha)
20180508
- Adds variable shortcodes for all custom content:
%%id%%
,%%date%%
,%%title%%
,%%author%%
,%%year%%
- Adds option to exclude posts based on Post ID
- Adds new filter hook,
scs_replace_shortcodes
- Generates new translation template
- Updates Show Support panel
- Updates plugin image files
- Tests on WordPress 5.0
20171103
- Removes extra
manage_options
check for settings validation - Tests on WordPress 4.9
20171024
- Adds extra
manage_options
capability check to modify settings - Streamlines Support panel in plugin settings
- Tests on WordPress 4.9
20170801
- Updates GPL license blurb
- Adds GPL license text file
- Tests on WordPress 4.9 (alpha)
20170325
- Refines display of settings panels
- Updates show support panel in plugin settings
- Replaces global
$wp_version
withget_bloginfo('version')
- Tests on WordPress version 4.8
20161118
- Added option to display custom content only on posts
- Added option to display custom content on pages
- Added
scs_content_priority
filter hook - Refined display of plugin settings page
- Updated plugin author URL
- Changed stable tag from trunk to latest version
- Refactored
add_scs_links()
function - Updated URL for rate this plugin links
- Removed default abbr styles
- Regenerated default language template
- Tested on WordPress version 4.7 (beta)
20160813
- Streamlined and optimized plugin settings page
- Replaced
_e()
withesc_html_e()
oresc_attr_e()
- Replaced
__()
withesc_html__()
oresc_attr__()
- Added plugin icons and larger banner image
- Improved translation support
- Removed local translations in favor of GlotPress
- Changed text-domain from “scc” to “simple-custom-content”
- Added more allowed tags and attributes to custom content
- Generated new translation template
- Tested on WordPress 4.6
20160409
- Changed the WP Menu item from SCC to Custom Content
- Fixed mismatched Text Domain and domain parameters
- Added option to include custom content in feed excerpts
- Fixed bug by changing “scs_feed_none” to “scs_post_none”
- Clarified some information on the settings screen
- Clarified example text/markup for default options
- Increased the size of textareas in plugin settings
- Improved appearance of the plugin settings screen
- Replaced icon with retina version
- Added screenshot to readme/docs
- Added retina version of banner
- Reorganized and refreshed readme.txt
- Tested on WordPress version 4.5 beta
20151111
- Updated heading hierarchy in plugin settings
- Updated minimum version requirement
- Tested on WordPress 4.4 beta
20150808
- Tested on WordPress 4.3
- Updated minimum version requirement
20150507
- Tested with WP 4.2 + 4.3 (alpha)
- Changed a few “http” links to “https”
20150315
- Tested with latest version of WP (4.1)
- Increased minimum version to WP 3.8
- Renamed plugin title in WP menu
- Removed deprecated screen_icon()
- Added Text Domain and Domain Path to file header
- Added $scs_wp_vers for minimum version check
- Streamline/fine-tune plugin code
- Changed text domain from scs to scc
- Added .pot translation template in /languages/
- Added $allowedposttags to wp_kses() validation
- Exclude pages from simple_custom_content_posts()
20140925
- Tested on latest version of WordPress (4.0)
- Increased min-version requirement to WP 3.7
- Added conditional check for min-version function
20140305
- Bugfix: now using isset() for toggling admin panel custom classes, resolves PHP error “undefined index”
20140123
- Tested with latest version of WordPress (3.8)
- Added trailing slash to load_plugin_textdomain()
- Fixed 3 incorrect _e() tags in core file
20131106
- Tested with latest version of WordPress (3.7)
- General code cleanup and maintenance
- Removed closing
?>
from simple-custom-content.php - Added line to prevent direct loading of the script
- Added uninstall.php file
- Added “rate this plugin” links
- Added i18n support
20130713
- General code check n clean
- Improved localization support
- Overview and Updates admin panels toggled open by default
20130104
- Added margins to submit buttons
20121025
- Refactored Authenticate plugin and renamed to Simple Custom Content
20080629
- Initial release of Authenticate