Simple Custom Content

外掛說明

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:

  • Before content
  • After content
  • 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:

And/or purchase one of my premium WordPress plugins:

Links, tweets and likes also appreciated. Thank you! 🙂

螢幕擷圖

  • Simple Custom Content: Plugin Settings (panels toggle open/closed)

安裝方式

Installation

  1. Upload the plugin to your blog and activate
  2. 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:

  • Before content
  • After content
  • 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.

常見問題集

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! 🙂

使用者評論

2024 年 10 月 11 日
Amazing. Exactly what I needed. And works like a charm. Thanks for making it.
2020 年 11 月 13 日
Using as above content widget for multiple share button shortcodes, couldn’t live without this plugin. Another great J. Starr plugin!
2016 年 9 月 7 日
Plugin does just as it says and delivers it without problems. When I came across a few things that I wanted the plugin to do that it didn’t do the support from the developer was simply outstanding. Fast and efficient replies. It’s now the perfect plugin for my needs.
2016 年 9 月 3 日
Simple Custom Content was launched in October of 2012, and has been rocking custom content ever since! So huge THANK YOU to everyone who uses the plugin — here’s to another 3 years of Simple Custom Content!! 🙂
閱讀全部 7 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Simple Custom Content〉的開發相關工作。

參與者

將〈Simple Custom Content〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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!

20241010

  • Tests on WordPress 6.7

Full changelog @ https://plugin-planet.com/wp/changelog/simple-custom-content.txt