{"id":9678,"date":"2010-07-09T18:07:03","date_gmt":"2010-07-09T18:07:03","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/content-switcher\/"},"modified":"2025-09-09T21:43:56","modified_gmt":"2025-09-09T21:43:56","slug":"content-switcher","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/content-switcher\/","author":6078483,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"5.0.1","stable_tag":"5.0.1","tested":"6.8.5","requires":"3.5","requires_php":"5.3","requires_plugins":null,"header_name":"Content Switcher","header_author":"Kleor","header_description":"","assets_banners_color":"","last_updated":"2025-09-09 21:43:56","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.kleor.com\/donation\/","header_plugin_uri":"https:\/\/www.kleor.com\/content-switcher\/","header_author_uri":"https:\/\/www.kleor.com","rating":5,"author_block_rating":0,"active_installs":100,"downloads":16132,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"Kleor","date":"2010-07-09 18:08:11"},"1.2":{"tag":"1.2","author":"Kleor","date":"2010-08-21 12:34:15"},"1.2.1":{"tag":"1.2.1","author":"Kleor","date":"2010-08-27 00:44:09"},"1.5":{"tag":"1.5","author":"Kleor","date":"2010-08-28 13:39:28"},"1.6":{"tag":"1.6","author":"Kleor","date":"2010-09-16 01:41:02"},"1.6.1":{"tag":"1.6.1","author":"Kleor","date":"2010-11-19 18:10:07"},"1.6.2":{"tag":"1.6.2","author":"Kleor","date":"2010-12-07 15:44:55"},"1.7":{"tag":"1.7","author":"Kleor","date":"2011-03-21 15:47:57"},"1.7.1":{"tag":"1.7.1","author":"Kleor","date":"2011-03-22 20:02:01"},"1.7.2":{"tag":"1.7.2","author":"Kleor","date":"2011-04-09 17:48:09"},"1.7.3":{"tag":"1.7.3","author":"Kleor","date":"2011-04-25 02:28:52"},"1.7.4":{"tag":"1.7.4","author":"Kleor","date":"2011-05-07 08:31:57"},"1.7.5":{"tag":"1.7.5","author":"Kleor","date":"2011-05-18 07:16:02"},"1.7.6":{"tag":"1.7.6","author":"Kleor","date":"2011-05-26 04:04:21"},"1.7.7":{"tag":"1.7.7","author":"Kleor","date":"2011-06-01 18:02:10"},"1.8":{"tag":"1.8","author":"Kleor","date":"2011-06-10 08:01:25"},"1.8.1":{"tag":"1.8.1","author":"Kleor","date":"2011-06-22 00:35:27"},"1.8.2":{"tag":"1.8.2","author":"Kleor","date":"2011-08-27 05:21:00"},"1.8.3":{"tag":"1.8.3","author":"Kleor","date":"2011-10-31 23:24:06"},"1.8.4":{"tag":"1.8.4","author":"Kleor","date":"2011-11-03 07:46:29"},"1.8.5":{"tag":"1.8.5","author":"Kleor","date":"2011-12-15 22:35:56"},"2.0":{"tag":"2.0","author":"Kleor","date":"2012-01-17 17:01:51"},"2.0.1":{"tag":"2.0.1","author":"Kleor","date":"2012-01-19 15:27:08"},"2.1":{"tag":"2.1","author":"Kleor","date":"2012-02-19 17:51:46"},"2.1.1":{"tag":"2.1.1","author":"Kleor","date":"2012-02-20 04:51:33"},"2.1.2":{"tag":"2.1.2","author":"Kleor","date":"2012-02-22 21:01:34"},"2.1.3":{"tag":"2.1.3","author":"Kleor","date":"2012-03-04 18:19:39"},"3.0":{"tag":"3.0","author":"Kleor","date":"2012-09-10 13:49:20"},"3.1":{"tag":"3.1","author":"Kleor","date":"2012-09-15 05:04:54"},"3.2":{"tag":"3.2","author":"Kleor","date":"2012-11-14 03:25:55"},"3.3":{"tag":"3.3","author":"Kleor","date":"2013-05-05 15:08:48"},"3.4":{"tag":"3.4","author":"Kleor","date":"2013-05-10 16:50:46"},"3.4.1":{"tag":"3.4.1","author":"Kleor","date":"2013-09-10 21:37:15"},"3.5":{"tag":"3.5","author":"Kleor","date":"2013-10-21 06:10:56"},"3.5.1":{"tag":"3.5.1","author":"Kleor","date":"2013-10-30 05:49:50"},"3.5.2":{"tag":"3.5.2","author":"Kleor","date":"2013-11-12 03:05:03"},"3.5.3":{"tag":"3.5.3","author":"Kleor","date":"2013-11-25 10:42:48"},"3.6":{"tag":"3.6","author":"Kleor","date":"2013-12-07 18:27:43"},"3.6.1":{"tag":"3.6.1","author":"Kleor","date":"2014-08-27 07:12:54"},"3.6.2":{"tag":"3.6.2","author":"Kleor","date":"2015-04-20 21:56:11"},"3.7":{"tag":"3.7","author":"Kleor","date":"2015-08-16 02:35:19"},"3.8":{"tag":"3.8","author":"Kleor","date":"2016-10-09 17:30:06"},"3.9":{"tag":"3.9","author":"Kleor","date":"2017-07-28 07:08:32"},"4.0":{"tag":"4.0","author":"Kleor","date":"2020-03-11 04:28:45"},"4.0.1":{"tag":"4.0.1","author":"Kleor","date":"2020-03-17 17:13:20"},"4.0.2":{"tag":"4.0.2","author":"Kleor","date":"2020-04-15 19:18:53"},"4.1":{"tag":"4.1","author":"Kleor","date":"2020-11-02 17:36:37"},"4.1.1":{"tag":"4.1.1","author":"Kleor","date":"2021-02-21 20:57:24"},"4.2":{"tag":"4.2","author":"Kleor","date":"2024-11-14 23:14:54"},"5.0":{"tag":"5.0","author":"Kleor","date":"2025-08-12 18:28:09"},"5.0.1":{"tag":"5.0.1","author":"Kleor","date":"2025-09-09 21:43:56"}},"upgrade_notice":{"":"<p>When you upgrade Content Switcher, you don&#039;t lose any settings or any data.<\/p>\n\n<p>You can upgrade Content Switcher through the &quot;Plugins&quot; menu in WordPress, and through the &quot;WordPress Updates&quot; page of the &quot;Dashboard&quot; menu in WordPress (Dashboard =&gt; Updates), or through the &quot;Add Plugins&quot; page of the &quot;Plugins&quot; menu in WordPress (Plugins =&gt; Add New =&gt; Upload Plugin, upload the plugin file without unzipping it). You can also upgrade it like this:<\/p>\n\n<ol>\n<li>Unzip the plugin file.<\/li>\n<li>Upload with your FTP software the &quot;content-switcher&quot; folder, and only this folder, to your plugins directory (it should be &quot;wp-content\/plugins&quot;), without deleting the &quot;content-switcher&quot; folder that already exists in this directory.<\/li>\n<\/ol>\n\n<p>You don&#039;t need to deactivate and reactivate the plugin.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":3},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3397476,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3397477,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.2","1.2.1","1.5","1.6","1.6.1","1.6.2","1.7","1.7.1","1.7.2","1.7.3","1.7.4","1.7.5","1.7.6","1.7.7","1.8","1.8.1","1.8.2","1.8.3","1.8.4","1.8.5","2.0","2.0.1","2.1","2.1.1","2.1.2","2.1.3","3.0","3.1","3.2","3.3","3.4","3.4.1","3.5","3.5.1","3.5.2","3.5.3","3.6","3.6.1","3.6.2","3.7","3.8","3.9","4.0","4.0.1","4.0.2","4.1","4.1.1","4.2","5.0","5.0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[529,388,19987,9770,19988],"plugin_category":[36,43],"plugin_contributors":[80411],"plugin_business_model":[],"class_list":["post-9678","plugin","type-plugin","status-publish","hentry","plugin_tags-content","plugin_tags-cookie","plugin_tags-env","plugin_tags-get","plugin_tags-globals","plugin_category-analytics","plugin_category-customization","plugin_contributors-kleor","plugin_committers-kleor"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/content-switcher\/assets\/icon-128x128.png?rev=3397476","icon_2x":"https:\/\/ps.w.org\/content-switcher\/assets\/icon-256x256.png?rev=3397477","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Content Switcher allows you to <strong>easily insert<\/strong> into posts, pages and widgets of your website <strong>random numbers, and random or variable contents<\/strong>. You can use it, for example, to display <a href=\"https:\/\/www.php.net\/manual\/en\/reserved.variables.php\">COOKIE, ENV, GET, GLOBALS, POST, REQUEST, SERVER or SESSION<\/a> variables.<\/p>\n\n<ul>\n<li><a href=\"https:\/\/www.kleor.com\/content-switcher\/\">Documentation<\/a><\/li>\n<\/ul>\n\n<h4>Translators<\/h4>\n\n<ul>\n<li>Andrew - <a href=\"https:\/\/www.webhostinghub.com\">WebHostingHub<\/a> (Spanish)<\/li>\n<li>Ogi Djuraskovic - <a href=\"https:\/\/firstsiteguide.com\">First Site Guide<\/a> (Serbian)<\/li>\n<\/ul>\n\n<h3>Plugins from the same author<\/h3>\n\n<ul>\n<li><a href=\"https:\/\/www.kleor.com\/commerce-manager\/en\/\">Commerce Manager, to sell your products<\/a><\/li>\n<li><a href=\"https:\/\/www.kleor.com\/affiliation-manager\/en\/\">Affiliation Manager, to create your affiliate program<\/a><\/li>\n<li><a href=\"https:\/\/www.kleor.com\/membership-manager\/en\/\">Membership Manager, to create your members areas<\/a><\/li>\n<li><a href=\"https:\/\/www.kleor.com\/optin-manager\/en\/\">Optin Manager, to build your prospects lists<\/a><\/li>\n<li><a href=\"https:\/\/www.kleor.com\/contact-manager\/en\/\">Contact Manager, to create your contact forms<\/a><\/li>\n<li><a href=\"https:\/\/www.kleor.com\/easy-timer\/en\/\">Easy Timer, to display count down\/up timers<\/a><\/li>\n<li><a href=\"https:\/\/www.kleor.com\/device-detect\/en\/\">Device Detect, to detect smartphones and tablets<\/a><\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>You can install Content Switcher through the \"Add Plugins\" page of the \"Plugins\" menu in WordPress (Plugins =&gt; Add New =&gt; Upload Plugin). Upload the plugin file without unzipping it. You can also install it like this:<\/p>\n\n<ol>\n<li>Unzip the plugin file.<\/li>\n<li>Upload with your FTP software the \"content-switcher\" folder, and only this folder, to your plugins directory (it should be \"wp-content\/plugins\").<\/li>\n<\/ol>\n\n<p>Once you have installed Content Switcher, activate the plugin through the \"Plugins\" menu in WordPress.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20can%20i%20use%20shortcodes%20in%20my%20wordpress%20theme%3F'><h3>How can I use shortcodes in my WordPress theme?<\/h3><\/dt>\n<dd><p>Insert into the PHP files of your theme a code like this:<\/p>\n\n<pre><code>&lt;?php echo do_shortcode('[your-shortcode]'); ?&gt;\n<\/code><\/pre><\/dd>\n<dt id='how%20to%20use%20shortcodes%20in%20comments%3F'><h3>How to use shortcodes in comments?<\/h3><\/dt>\n<dd><p>Edit the \"functions.php\" file (create it if it doesn't exist) of your WordPress theme and add this line of code:<\/p>\n\n<pre><code>add_filter('comment_text', 'do_shortcode');\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<ul>\n<li>Version 5.0.1\n\n<ul>\n<li>Improve the security of the \"filter\" attribute<\/li>\n<\/ul><\/li>\n<li>Version 5.0\n\n<ul>\n<li>Remove the support for Google Analytics and Google Optimize<\/li>\n<\/ul><\/li>\n<li>Version 4.2\n\n<ul>\n<li>Replace Google Optimizer with Google Optimize<\/li>\n<\/ul><\/li>\n<li>Version 4.1.1\n\n<ul>\n<li>Fix a bug with PHP 8<\/li>\n<\/ul><\/li>\n<li>Version 4.1\n\n<ul>\n<li>Change the tracking code of Google Analytics<\/li>\n<\/ul><\/li>\n<li>Version 4.0.2\n\n<ul>\n<li>Improve the security<\/li>\n<\/ul><\/li>\n<li>Version 4.0.1\n\n<ul>\n<li>Improve the security<\/li>\n<\/ul><\/li>\n<li>Version 4.0\n\n<ul>\n<li>Use anonymous functions instead of \"create_function\"<\/li>\n<\/ul><\/li>\n<li>Version 3.9\n\n<ul>\n<li>Add the ability to use custom languages<\/li>\n<\/ul><\/li>\n<li>Version 3.8\n\n<ul>\n<li>Add the ability to use custom files<\/li>\n<\/ul><\/li>\n<li>Version 3.7\n\n<ul>\n<li>Adapt to WordPress 4.3<\/li>\n<\/ul><\/li>\n<li>Version 3.6.2\n\n<ul>\n<li>Add Serbian translation<\/li>\n<\/ul><\/li>\n<li>Version 3.6.1\n\n<ul>\n<li>Improve the stability of the plugin when its folder is renamed<\/li>\n<\/ul><\/li>\n<li>Version 3.6\n\n<ul>\n<li>Optimize the CSS styles of the options page for WordPress 3.8<\/li>\n<li>Improve the uninstallation of the plugin<\/li>\n<\/ul><\/li>\n<li>Version 3.5.3\n\n<ul>\n<li>Add Spanish translation<\/li>\n<\/ul><\/li>\n<li>Version 3.5.2\n\n<ul>\n<li>Improve the \"filter\" attribute<\/li>\n<\/ul><\/li>\n<li>Version 3.5.1\n\n<ul>\n<li>Improve the shortcodes<\/li>\n<\/ul><\/li>\n<li>Version 3.5\n\n<ul>\n<li>Add a meta box in the edit pages of posts and pages<\/li>\n<\/ul><\/li>\n<li>Version 3.4.1\n\n<ul>\n<li>Improve the installation instructions<\/li>\n<\/ul><\/li>\n<li>Version 3.4\n\n<ul>\n<li>Reduce the usage of memory<\/li>\n<li>Improve the structure of files<\/li>\n<\/ul><\/li>\n<li>Version 3.3\n\n<ul>\n<li>Improve the system of global variables<\/li>\n<li>Add the ability to use and display GLOBALS and REQUEST variables<\/li>\n<\/ul><\/li>\n<li>Version 3.2\n\n<ul>\n<li>Improve the structure of files<\/li>\n<\/ul><\/li>\n<li>Version 3.1\n\n<ul>\n<li>Improve the code<\/li>\n<\/ul><\/li>\n<li>Version 3.0\n\n<ul>\n<li>Add Multisite support<\/li>\n<\/ul><\/li>\n<li>Version 2.1.3\n\n<ul>\n<li>Add an upgrade notice<\/li>\n<li>Factorize the code to reduce the usage of memory<\/li>\n<\/ul><\/li>\n<li>Version 2.1.2\n\n<ul>\n<li>Fix a minor bug with shortcodes<\/li>\n<\/ul><\/li>\n<li>Version 2.1.1\n\n<ul>\n<li>Reduce the usage of memory<\/li>\n<\/ul><\/li>\n<li>Version 2.1\n\n<ul>\n<li>Reduce the usage of memory<\/li>\n<li>Add the ability to reset the options of Content Switcher<\/li>\n<\/ul><\/li>\n<li>Version 2.0.1\n\n<ul>\n<li>Minify the code<\/li>\n<\/ul><\/li>\n<li>Version 2.0\n\n<ul>\n<li>Add the ability to track the back office pages with Google Analytics<\/li>\n<li>Improve the [string] shortcode<\/li>\n<\/ul><\/li>\n<li>Version 1.8.5\n\n<ul>\n<li>Minify the size of the \"languages\" folder<\/li>\n<\/ul><\/li>\n<li>Version 1.8.4\n\n<ul>\n<li>Improve the ability to delete the options of Content Switcher<\/li>\n<\/ul><\/li>\n<li>Version 1.8.3\n\n<ul>\n<li>Factorize the code of the options page<\/li>\n<\/ul><\/li>\n<li>Version 1.8.2\n\n<ul>\n<li>Deactivation\/reactivation is no longer necessary to add new options when Content Switcher is updated<\/li>\n<li>Add the ability to display the version of Content Switcher<\/li>\n<\/ul><\/li>\n<li>Version 1.8.1\n\n<ul>\n<li>Add the \"default\" and \"filter\" attributes<\/li>\n<li>Add the ability to delete the options of Content Switcher<\/li>\n<\/ul><\/li>\n<li>Version 1.8\n\n<ul>\n<li>Add the [content-switcher] shortcode<\/li>\n<li>Minify the number of files<\/li>\n<\/ul><\/li>\n<li>Version 1.7.7\n\n<ul>\n<li>Minify the size of the \"initial-options.php\", \"install.php\" and \"options-page.php\" files<\/li>\n<\/ul><\/li>\n<li>Version 1.7.6\n\n<ul>\n<li>Improve the structure of files<\/li>\n<\/ul><\/li>\n<li>Version 1.7.5\n\n<ul>\n<li>Minify the code of the options page<\/li>\n<\/ul><\/li>\n<li>Version 1.7.4\n\n<ul>\n<li>Optimize the performance of the options page<\/li>\n<\/ul><\/li>\n<li>Version 1.7.3\n\n<ul>\n<li>Update the links to the documentation<\/li>\n<\/ul><\/li>\n<li>Version 1.7.2\n\n<ul>\n<li>Add links to the options page and the documentation below the plugin's description<\/li>\n<li>Improve the compatibility with other shortcodes<\/li>\n<\/ul><\/li>\n<li>Version 1.7.1\n\n<ul>\n<li>Improve the options page<\/li>\n<\/ul><\/li>\n<li>Version 1.7\n\n<ul>\n<li>Improve the code<\/li>\n<\/ul><\/li>\n<li>Version 1.6.2\n\n<ul>\n<li>Update the Google Optimizer codes<\/li>\n<\/ul><\/li>\n<li>Version 1.6.1\n\n<ul>\n<li>Don't load any JavaScript file<\/li>\n<\/ul><\/li>\n<li>Version 1.6\n\n<ul>\n<li>Add the ability to use shortcodes in titles and excerpts<\/li>\n<\/ul><\/li>\n<li>Version 1.5\n\n<ul>\n<li>Add the ability to add the Google Analytics code to each page of your website<\/li>\n<li>Best factorization of the code<\/li>\n<\/ul><\/li>\n<li>Version 1.2.1\n\n<ul>\n<li>Minify the code<\/li>\n<li>Apply the \"htmlspecialchars\" function to GET and POST variables<\/li>\n<\/ul><\/li>\n<li>Version 1.2\n\n<ul>\n<li>Add the [variable-string] shortcode<\/li>\n<li>Add the ability to use and display COOKIE, ENV, GET, POST, SERVER and SESSION variables<\/li>\n<\/ul><\/li>\n<li>Version 1.0\n\n<ul>\n<li>Initial version<\/li>\n<\/ul><\/li>\n<\/ul>","raw_excerpt":"Allows you to easily display a random number, a random or variable content on your website.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/9678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=9678"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kleor"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=9678"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=9678"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=9678"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=9678"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=9678"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=9678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}