How to Set Condition If a Link with an Anchor Exists

I’m trying to set a condition on a navigation link where if the permalink with the anchor does not exist, do not show it.

I set it up as:

{{dc:post:permalink depth=“0”}}#_other_resources is not _____________________________

But it’s still showing up in the navigation even though that anchor does not exist on that page. Any help would be appreciated.

Hi @OctoCog,

Thanks for reaching out.
It is not very clear what exactly you are trying here. Can you please give an example or share any page where you have added such a condition? I would also request you please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password
– Specific page and section where this condition is added

To create a secure note, click the key icon underneath any of your posts.

Thanks