• Resolved 349103y

    (@349103y)


    Hi Tobias!

    How to insert tablepress shortcode into meta tag Description?

    Example:
    <meta name=”description” content=”Site description [table-cell id=test row=3 column=2 /]” />

    This code not work 🙁

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Unfortunately, TablePress can not really influence this, as this is controlled by your theme, which inserts the meta tag.
    In addition, Shortcodes don’t actually work outside normal post/page content, so that you could try using a template tag function (as I assume that this code is inside a theme PHP file).
    So, maybe try this:

    <meta name="description" content="Site description <?php do_shortcode( '[table-cell id=test row=3 column=2 /]' ); ?>" />
    

    Regards,
    Tobias

    Thread Starter 349103y

    (@349103y)

    Ok, thank you, I will try.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to insert tablepress shortcode into meta tag Description?’ is closed to new replies.