• Resolved fizzers

    (@fizzers)


    Hello,

    I’ve had a look around but couldn’t find an answer to this directly.

    Is it possible to set default meta titles and descriptions at the product attribute / tag level?

    For example, each product has around 10 attributes and lots of variation across those depending on the attribute (one attribute has 50+ terms configured). If we could set a default/generic meta description for SEO purposes it would save us a huge amount of time.

    Thanks

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

    (@cybr)

    Hello!

    This is possible with filters. See here for titles, and see here for descriptions.

    Thread Starter fizzers

    (@fizzers)

    I will check this out, thanks Sybre.

    Thread Starter fizzers

    (@fizzers)

    Hello!

    I’ve implemented a default meta description for an attribute which seems to work:

    if ( null === $args && is_post_type_archive( 'yield' ) ) {

    Say ‘yield’ has the following values for example: low, medium or high. The taxonomy for that is /…/yield/high, /…/yield/low, etc. and currently it’s only applying to the top-level.

    How do I implement this for the actual values i.e. level of granularity below ‘yield’?

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi again!

    That’d be null === $args && is_singular() && 'yield' === get_post_type() — the subpages of the “post type archive” are simply “post type posts”.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Default meta titles and descriptions’ is closed to new replies.