WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. tamnajio
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/flexible-posts-widget/

  2. alhalkab
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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

About this Topic

Tags

No tags yet.