Extend Post-widget?

Asked on February 15, 2016 in Development.

Is there a quick way to extend a widget, e.g. post-widget?
I’d like to show a certain blog-post and would like to select any post from the front-end (without adding a taxonomy or category to it).

I haven’t found a hint in the documentation how to do that?


tiptronic Power User
  • Possible Answers to Your Question:

  • 1 Answer(s)
    Answered on February 18, 2016.

    Hi there,

    You can only filter specific elements where a filter exists (please see our guide on using hooks and filters if you are unsure what this means) in the post widget file. If your modification adds new functionality like a new static column containing a specific post, then you need to create a custom widget that implements those elements (you can use the post widget as a starting point). This is covered here:

    Thx, but wouldn’t it make sense to let me extend the Layers_Content_Widget n the same way I can extend the Layer_Widget class?

    (Btw: for me the docs.layerswp.com site is dog-slow from here (Europe)… it took me 20 secs to open this page and reply..)

    on February 18, 2016.