Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
greos committed Sep 3, 2019
1 parent 9f86423 commit a82bcb6
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
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

0 comments on commit a82bcb6

Please sign in to comment.