{"id":27052,"date":"2014-01-05T17:10:19","date_gmt":"2014-01-05T17:10:19","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/get-params\/"},"modified":"2019-07-18T07:14:20","modified_gmt":"2019-07-18T07:14:20","slug":"get-params","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/get-params\/","author":15856804,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1","stable_tag":"1.1","tested":"5.2.24","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"GET Params","header_author":"Lever Technology LLC","header_description":"","assets_banners_color":"","last_updated":"2019-07-18 07:14:20","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/get-params\/","header_author_uri":"https:\/\/wp-glogin.com\/","rating":5,"author_block_rating":0,"active_installs":1000,"downloads":12202,"num_ratings":15,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"15"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[9770,10256,80,2277],"plugin_category":[43],"plugin_contributors":[155013],"plugin_business_model":[],"class_list":["post-27052","plugin","type-plugin","status-publish","hentry","plugin_tags-get","plugin_tags-params","plugin_tags-shortcode","plugin_tags-vars","plugin_category-customization","plugin_contributors-levertechadmin","plugin_committers-chrisakelley","plugin_committers-levertechadmin","plugin_committers-nathansingh","plugin_support_reps-deniseamara"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/get-params.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>GET params is a plugin providing your pages and posts with shortcodes allowing you to display GET parameters from \nthe current URL in pages and posts, or show\/hide content depending on GET param values.<\/p>\n\n<p>As an example, I use this plugin so that I can show personalized installation instructions to users of another piece of \nsoftware I wrote, simply by directing them to a URL on my WordPress site, along with GET variables chosen to \nensure that custom fields and sections display exactly as required for them to install my software.<\/p>\n\n<p><strong>See FAQ if you are having problems under WordPress 4.2.3<\/strong><\/p>\n\n<p>Examples follow, assuming the user goes to your post page http:\/\/example.com\/post\/3\/?paramname=showme<\/p>\n\n<h4>Displaying GET parameters directly<\/h4>\n\n<pre><code> [display-get-param name=\"paramname\"]\n<\/code><\/pre>\n\n<p>Shows the value of GET named paramname ('showme' in the example URL), or \"blank value\" if none given.<\/p>\n\n<pre><code> [display-get-param name=\"paramname\" default=\"Paramname was blank\"]\n<\/code><\/pre>\n\n<p>Shows the value of GET named paramname, or \"Paramname was blank\" if none<\/p>\n\n<h4>Controlling display of enclosed content depending on GET parameter values<\/h4>\n\n<pre><code> [display-if-get name=\"myparam\"]\n\nThis enclosed content only shows if myparam is passed as a GET param (with any value)\n\n [\/display-if-get]\n<\/code><\/pre>\n\n<p>Another example specifying a value to match:<\/p>\n\n<pre><code> [display-if-get name=\"myparam\" value=\"true\"]\n\nThis content only shows if myparam is passed as a GET param and equals \"true\"\n\n [\/display-if-get]\n<\/code><\/pre>\n\n<h4>Inverting the criteria<\/h4>\n\n<p>The plugin also contains an opposite to display-if-get, called display-if-not-get.<\/p>\n\n<p>display-if-not-get content will display only in all cases where display-if-get with the same parameters would NOT show.<\/p>\n\n<p>This means that display-if-not-get content will also show if the named parameter does not exist at all in the URL query string.<\/p>\n\n<h4>If\/else blocks<\/h4>\n\n<p>This is essentially possible by using a combination of display-if-get and display-if-not-get with the same parameters.<\/p>\n\n<pre><code> [display-if-get name=\"opt\" value=\"1\"]\n\nYou chose option 1 - URL contains \/?opt=1.\n\n [\/display-if-get]\n\n [display-if-not-get name=\"opt\" value=\"1\"]\n\nYou chose an option that is not option 1.\n\n [\/display-if-not-get]\n<\/code><\/pre>\n\n<!--section=installation-->\n<p>Easiest way:<\/p>\n\n<ol>\n<li>Go to your WordPress admin control panel's plugin page<\/li>\n<li>Search for 'GET params'<\/li>\n<li>Click Install<\/li>\n<li>Click Activate on the plugin<\/li>\n<li>Start using shortcodes as described in our examples<\/li>\n<\/ol>\n\n<p>If you cannot install from the WordPress plugins directory for any reason, and need to install from ZIP file:<\/p>\n\n<ol>\n<li>Upload directory and contents to the <code>\/wp-content\/plugins\/<\/code> directory, or upload the ZIP file directly in\nthe Plugins section of your Wordpress admin<\/li>\n<li>Follow the instructions from step 4 above<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Is there a problem with the plugin under WordPress 4.2.3?<\/dt>\n<dd><p>There is a known problem where the plugin shortcodes are used within URLs or other HTML attributes which are themselves inside quotes.<\/p>\n\n<p>For example:<\/p>\n\n<p>&lt;a href=&quot;\/anotherpage?id=[display-get-param name=&quot;id&quot;]&quot;&gt;Click Here&lt;\/a&gt;<\/p>\n\n<p>apparently no longer works on WP 4.2.3 even though it did in 4.2.2.<\/p>\n\n<p>It's not clear whether this type of shortcode usage is permitted by WordPress at all, but in any case some users have found that mixing the quotation style helps:<\/p>\n\n<p>&lt;a href=&quot;\/anotherpage?id=[display-get-param name='id']&quot;&gt;Click Here&lt;\/a&gt;<\/p><\/dd>\n<dt>How can I obtain support for this plugin?<\/dt>\n<dd><p>Please help each other on the public support forums.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1<\/h4>\n\n<p>Added display-if-not-get.<\/p>\n\n<h4>1.0<\/h4>\n\n<p>First version<\/p>","raw_excerpt":"Shortcodes allowing you to display GET parameters from the current URL in pages and posts, or show\/hide content depending on GET param values","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/27052","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=27052"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nathansingh"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=27052"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=27052"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=27052"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=27052"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=27052"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=27052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}