• Resolved webaware

    (@webaware)


    Great plugin, thanks! A good little time saver.

    I’m using it a little differently on a website, where I had to quickly come up with a per-page solution for putting some code in the footer of selected pages. I use the post ID as part of the snippet title, which works great.

    For pages with no snippet, e.g. post ID = 12 and there is no snippet-12, an error is logged for “Undefined variable: snippet”, post-snippets.php on line 180. If you could please set $snippet = '' at the top of that function, it would stop filling the logs with that error 🙂

    cheers,
    Ross

    http://ww.wp.xz.cn/extend/plugins/post-snippets/

Viewing 1 replies (of 1 total)
  • Thread Starter webaware

    (@webaware)

    Actually, with a clear head after a good lunch, this is the wrong use for this plugin — I just added a custom field (postmeta) to those posts. Never mind… 🙂

Viewing 1 replies (of 1 total)

The topic ‘Undefined variable: snippet’ is closed to new replies.