• Resolved ChromaDot

    (@soojooko)


    As far as I can tell, by default TSF will use a page/post excerpt to populate the description meta tag. Is it possible to tell TSF to automatically use a custom post meta field for a description, instead of the excerpt?

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

    (@cybr)

    Hi again ??

    Yes, you can override this. There are two filters available:

    1: the_seo_framework_fetched_description_excerpt
    2: the_seo_framework_generated_description
    • Filter 1 processes and trims what you put in, so it’s according to Google, Twitter, or Facebook guidelines.
    • Filter 2 takes what you put in as-is.

    Note that there’s a discrepancy between the filters in the second parameter, thanks to backward compatibility.

    • Filter 1 passes the post or term ID.
    • Filter 2 passes either null or an array with the id and taxonomy indexes.

    (Source code)

    Thread Starter ChromaDot

    (@soojooko)

    Excellent. Thanks very much, Sybre.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Automated Description using custom meta’ is closed to new replies.