Linux 软件免费装
Banner图

Post Content Shortcode

开发者 herronagency
更新时间 2025年6月29日 19:46
PHP版本: 7.0 及以上
WordPress版本: 6.8
版权: GPLv2 or later
版权网址: 版权信息

标签

shortcode dynamic content post content reusable content content blocks

下载

1.0.0 1.0.1

详情介绍:

Post Content Shortcode allows you to display the content of any post using a shortcode like: [post_content id="123"] This is useful for reusing content in multiple places, referencing another post inline, or including dynamically updated blocks of content. You can configure which post statuses are allowed to be embedded from the plugin's settings page under Settings → Post Content Shortcode.

安装:

  1. Upload the plugin folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Visit Settings → Post Content Shortcode to configure allowed post statuses.

升级注意事项:

1.0.1
  • Plugin metadata updated to include official links to plugin and author website.
1.0.0
  • Initial release.

常见问题:

Why doesn't the shortcode render anything?

Make sure the post you're referencing exists and has an allowed post status (e.g. Published). Check the plugin's Settings page for configuration.

How do I change the shortcode tag name?

Use the herron_pcs_shortcode_tag filter in your theme's functions.php. See the "Usage" section for an example.

Does the plugin log errors?

Yes, but only when WP_DEBUG_LOG is enabled in your wp-config.php file. This ensures no logs are written unless your site is in debugging mode. To enable logging, add the following lines to wp-config.php: define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); Logs will be written to wp-content/debug.log.

更新日志:

1.0.1 1.0.0