Flexible Posts Widget
[resolved] Limiting search period (4 posts)

  1. tamnajio
    Posted 3 years ago #

    Thank you for your great job. Now that I am using it for a month, I think it would be great to limit search period.

    As I use the plugin as a random posts selector, I need to limit search period in order not to select somewhat old posts. Currently I modified the plugin source code, but I suggest you to add a form field to save the search period.


  2. alhalkab
    Posted 3 years ago #

    hey tamnajio how do u make that, im looking for the same feature, but cant get it work, tks if anyone could help

  3. tamnajio
    Posted 3 years ago #

    You can learn from WordPress Codex to modify the source the way you want as I learned from there too.

    What I did was modifying flexible-posts-widget.php directly. I added a query filter to WP_Query object in the widget function. I can send you the code but you may want the way you like it.

  4. DaveE
    Plugin Author

    Posted 3 years ago #

    hello tamnajio & alhalkab,

    Thanks for talking this through. At this point, the plugin doesn't have this capability natively. I'm glad you were able to modify it to meet you needs. I'll add this feature to the list of possible additions for the future.

    Thank you,

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Flexible Posts Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.