Support » Plugin: The SEO Framework » Twitter tags are missing on front-end

  • Resolved Dalton Rooney

    (@daltonrooney)


    I’m using the latest version of SEO Framework with the latest version of WordPress and my twitter tags are not being output on the front end.

    In the SEO settings page, “Output Twitter meta tags?” is checked, the card type is selected, and a profile name is added. I’ve tried disabling all other plugins and reverting to the TwentySixteen theme with no change.

    Is anyone else experiencing this problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hi @daltonrooney,

    To have a valid Twitter card output, the card type is determined first.

    The process mainly involves checking for a social description and title.
    The social description can only be auto-generated if you’re not using a page builder. Alternatively, you’d have to manually assign a description in the SEO Settings.

    If you have object caching enabled, be sure to clear your object cache systematically or disable object caching in the SEO Settings General meta box.

    If the above doesn’t help, let me know!

    The process mainly involves checking for a social description and title.
    The social description can only be auto-generated if you’re not using a page builder.

    Thanks, that explains it. We don’t use the content field, everything is done with custom fields. We’re able to generate custom Facebook titles and descriptions using the_seo_framework_ogdescription_output filter, but the the_seo_framework_twitterdescription_output filter wasn’t doing anything.

    Filtering the available twitter cards to always return true seems to do what I want:
    add_filter( 'the_seo_framework_available_twitter_cards','__return_true' );

    Then my custom titles, descriptions, and images are being displayed. Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Twitter tags are missing on front-end’ is closed to new replies.