Genesis Featured Widget Amplified
Stick posts (1 post)

  1. Marco Chiesi
    Posted 2 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Genesis Featured Widget Amplified
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic