WP Manifestindependent plugin directory
manifest / content / mai-url-parameter-content

Mai URL Parameter Content

Show or hide dynamic content based on URL parameters.

by BizBudding · github.com/maithemewp/mai-url-parameter-content · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/maithemewp/mai-url-parameter-content/archive/refs/heads/develop.zip

From the readme

Mai URL Parameter Content This plugin contains 2 main features: 1. A custom block to display or hide dynamic content based on URL parameters. Requires ACF Pro v6+. The block supports multiple URL parameters, optionally requiring specific values (case-insensitive). 2. A programmatic way to add URL parameters (mostly for UTM campaigns) to all URLs inside a specific block or blocks. Mai URL Parameter Content block 1. All parameters set in the block need to exist on a specific page (case-insensitive) for the inner block content to display. 1. If a block parameter has a value, it must match (case-insensitive) on the page. 1. If a block parameter has an empty value, it only needs to exist on the page. The value doesn't matter. 1. You can use {paramname} in the block content to display a parameter value in your content. Mai URL Parameter Adder class In the below example, tricky-footer is a custom class added to the Advanced settings "Additional CSS Class(es)" field on most blocks. Any block with that class will have key = value pairs added as URL parameters to all tags within that element's children.

Read the full README on GitHub →