• Resolved mb299

    (@mb299)


    Hi @danieliser,
    I am using the below shortcode {content_control logged_out] along with another defined shortcode [url]

    [content_control logged_out][url href=”https://www.thetrainernetwork.in/login”%5DClick here to login[/url]

    [content_control logged_out] shortcode is not working as the [url] shortcode is displaying the intended message(hyperlink) “Click here to login” – for Logged in users as well. Can you please help me with this?

    The other shortcodes [content_control] [/content_control] and [content_control message =” “] are working perfect with my latest WordPress version.

    Awaiting an early resolution please.
    thanks / Manish

    • This topic was modified 5 years, 1 month ago by mb299.
Viewing 1 replies (of 1 total)
  • @mb299 – It could be that the [url] shortcode is not returning a value, but rather rendering it directly. Shortcodes should never render/echo content, they should return it as a string which can then be rendered or passed on.

    In this case if they echo while we are processing if it should be shown or not, then we can’t prevent it from rendering.

    So you may need to check how that shortcode was set up, or with the author of that shortcode to see how to correct it.

    Hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘[Content_control logged_out]’ is closed to new replies.