• Resolved immaterial

    (@immaterial)


    Hello! I’m considering to move from Snippetz to WPCode. However, unlike in Snippetz I’m not able to auto insert a snippet to be displayed after (nor before) the post content of each post on the blog homepage as well. Using WPCode, the snippet will be displayed only on the single post itself, but not on the homepage as well. I already tried out conditional logic, but could not figure out how to achieve what I want.

    Even more specific, I’d like to display the snippet only after certain posts (belonging to specific categories) on the homepage.

    • This topic was modified 1 year, 1 month ago by immaterial.
Viewing 1 replies (of 1 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @immaterial,

    Currently, you should be able to insert a snippet after each post on the blog homepage using the “Insert after excerpt” location but that will only work if the list of posts includes the excerpt.

    Using conditional logic specific to the post will not work the way you described it in WPCode, because the conditional logic rules will look at the specifics of the page where the snippet is loaded, not the post.

    In the premium version of the plugin there is a way to achieve both conditions and insert after the post only for certain categories using the “Insert anywhere” option and using a CSS selector specific just to those posts – if the theme applies the post-specific CSS classes to the elements.

Viewing 1 replies (of 1 total)
  • The topic ‘Show snippet after content on homepage’ is closed to new replies.