Changing a term centrally | WordPress.org

[ad_1]

Sounds like you want to use a shortcode. It’ll insert into post or page content pretty much anything that PHP is capable of. For example, adding [lorem] into post content could end up being replaced by several paragraphs of Latin-like gibberish. There’s presently no such shortcode, but hopefully it illustrates the concept.

Another example that does not currently exist but could: [copy] could be replaced by a full copyright declaration using the current year regardless of how old the post is. Or the shortcode handler function could find the publish date of the current post and use that year instead.

There are endless possibilities on how you could update such a shortcode. There could be a settings page where you input the desired content for any of the shortcodes you create. The simplest way to update would be to simply alter the PHP source code, but it’s not a very user friendly way to do things.

Shortcodes normally only work within post or page content, but any PHP that generates output can in theory utilize shortcodes by calling do_shortcode().

Thank you. That’s exactly what I need to know. I installed the Shortcoder plugin and have now been able to do what I wanted to achieve.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer