Quick question about sending parameters

I’m trying to send a parameter to a template:

[template id=53567 nolink="false"]

Inside the template I want to test for the value of nolink:

   <If {Get local=nolink} is value="true">
   <Else />

The output is “nolink”.

What am I missing please?

Looks like your markup isn’t using the correct syntax for the If tag since you’re not using one of the available core conditions. In this case, since you want to check the value of something, the condition you’d want to use would probably be check="{Get local=nolink}".

1 Like

Thanks. This might seem too obvious in retrospect, but I think it would have helped me if the documentation read:

Core Conditions

If tags must use either a core condition or a condition for additional content types provided by a Loops & Logic add-on.

The following core conditions are defined as conditions for WordPress core content.

Thanks for the feedback, we’re reworking our docs platform at the moment so once the new docs platform is in place, I’ve made a note to improve the clarity of that tag. I think part of the confusion comes from the fact that at the top of that doc page you linked it says that the first part of the If tag structure is called the “subject” and the subject is required. But then a bit further down on that page it refers to subjects as “core conditions” so it’s not clear that those two things are synonyms.

1 Like