Support » Plugin: Genesis Featured Widget Amplified » Stick posts

  • Marco Chiesi


    Hi there,
    thanks for this wonderful plugin. I have the need to display a widget with only sticky posts, and another one with only not-sticky posts.
    Which is the best approach to obtain that result?
    I had 2 ideas:

    1. [hardcoded] Use the gfwa_before_loop hook and change the wp query on the fly depending on the current widget instance. In this case how could I retrieve the current widget id that is set in the widget form?

    2. [general purpose] Use the gfwa_form_first_column hook to add an option to the form for selecting if sticky posts should be included or excluded. This also needs a gfwa_before_loop hook to change the WP query accordingly.

  • The topic ‘Stick posts’ is closed to new replies.