-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,20 @@ | ||
# query-string-content-shortcode | ||
Provides a shortcode to retrieve any query string from the url and display it or display content if specified value is set. | ||
Provides a shortcode to retrieve any query string from the url and display it or display content if specified value is set. | ||
|
||
HOW TO USE THIS SHORTCODE PLUGIN | ||
Specify a field and value to return content or specify just a field to return a value. Alternatively, find a value or field from the query string and return the content. | ||
|
||
EXAMPLE 1 | ||
URL: example.com/home/?city=Perth | ||
SHORTCODE: [query_string_content field="city" value="Perth"]The text will display[/query_string_content] | ||
RESULT: The text will display | ||
|
||
EXAMPLE 2 | ||
URL: example.com/home/?city=Perth | ||
SHORTCODE: [query_string_content field="city"][/query_string_content] | ||
RESULT: Perth | ||
|
||
EXAMPLE 3 | ||
URL: example.com/home/?city=Perth | ||
SHORTCODE: [query_string_content find="Perth"]Yes, the string was found[/query_string_content] | ||
RESULT: Yes, the string was found |