• Resolved Imagegudrun

    (@gudrunpetz)


    Hello, I would like to use the snippet with the text [advertisement] to mark paid posts.

    Unfortunately, the snippet is displayed in the post, but not in the post preview or in the Google snippets.

    How can I change that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ImageAtif Riaz

    (@lightbulbman)

    Hi @gudrunpetz

    Thanks for your question and I hope I have understood correctly, does your snippet add[advertisement] dynamically using a filter like the_content? if so it may not appear in previews or search snippets because:

    By default, Code Snippets executes code within your WordPress environment, but post previews and Google search snippets depend on how WordPress and search engines process content.

    1. Post previews might not fully process all filters.
    2. Google snippets are based on cached and indexed content, which may take time to update.

    A possible workaround is to ensure the tag is added directly to the post content at the time of saving using a filter like the_content

    If you want it to appear in search results, consider adding the text within the actual post content manually or using an SEO plugin to customize meta descriptions.

    Hope this helps.

    Thread Starter Imagegudrun

    (@gudrunpetz)

    Hello, I manually insert the word [ad] at the beginning of the text. However, the snippet display only shows [snippetxxx] but not the content.

    The text in the post preview is not displayed, even though the word is inserted.

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

The topic ‘snippet with the text [advertisement] in post preview or Google Snippets’ is closed to new replies.