Random Phrase Product Title, Description, etc?

  • Is there a way to add a random phrase or word to a title or description? For instance I wanted to put either Shop or Buy in front of a product title. I know I could do this manually but is there a way to do it automatically.

    Is there a way to include a product attribute in a title like the color?

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    You can add any text before the main product title or product description from the Rank Math UI by heading over to Rank Math > Titles & Meta > Products as shown below:

    The plugin does not have a variable to represent the product attribute but you can register a customer replacement variable using the following filter:

     * Filter to add custom variables
    add_filter( 'rank_math/vars/replacements', function( $vars ) {
    	return $vars;

    Looking forward to helping you. Thank you.



    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Random Phrase Product Title, Description, etc?’ is closed to new replies.