hasvalue-shortcode

HASVALUE shortcode

Free!

Product Description

Display content enclosed by the shortcode if the specified custom field has a value.

Use as follows:

[HASVALUE key=”custom_field_name”]

…. here you can put your content…..

…. it can be plain text, HTML, shortcodes and even javascript ….

[/HASVALUE]

 

If you want to show certain content when there is no value:

[NOVALUE key=”custom_field_name”]

…. here you can put your content…..

…. it can be plain text, HTML, shortcodes and even javascript ….

[/NOVALUE]

 

If you need to ‘nest’ your queries for more advanced operations you can’t call the same HASVALUE shortcode from inside the HASVALUE shortcode, therefore you have to use HASVALUE2 and HASVALUE3 shortcodes as follows:

[HASVALUE key=”custom_field_name”]

… now to check another field inside the HASVALUE shortcode you can use

[HASVALUE2 key=”custom_field_name”]

…. here you can put your content…..

…. it can be plain text, HTML, shortcodes and even javascript ….

[/HASVALUE2]

…. here you can put your content…..

…. it can be plain text, HTML, shortcodes and even javascript ….

[/HASVALUE]

 

The list of available shortcodes:

[HASVALUE]

[HASVALUE2]

[HASVALUE3]

[NOVALUE]

[NOVALUE2]

[NOVALUE3]

Reviews

There are no reviews yet.

Be the first to review “HASVALUE shortcode”