WordPress.org

Ready to get started?Download WordPress

Forums

FT Calendar
[resolved] Sort category by event date (expand events list) (7 posts)

  1. babacom
    Member
    Posted 3 years ago #

    What are your suggestions for expanding the events list to include the content of a post? Does that make sense? Essentially I'm looking to sort posts within a category by event date.

    http://wordpress.org/extend/plugins/ft-calendar/

  2. Lew Ayotte
    Member
    Plugin Author

    Posted 3 years ago #

    babacom,

    We will be adding features like this to future versions of the plugin.

  3. babacom
    Member
    Posted 3 years ago #

    Cool! Thanks for the response. I might try some serious hack-a-thon action on class-shortcodes.php and see how far I get. I'm an atrocious programmer might if you stare at a thing long enough...

    Will try coding something like if this eventid[1] looks like the previous eventid[0], then don't display it.

    Then again putting the day in front of it might be the real solution.

    Thanks again

  4. babacom
    Member
    Posted 3 years ago #

    oops, wrong topic.

  5. Lew Ayotte
    Member
    Plugin Author

    Posted 3 years ago #

    babacom,

    Here's a hint...

    After (line 136):

    $data['AUTHOR'] = $author->display_name;

    Add a line like:

    $data['CONTENT'] = $post->content;

    Then you'd just need to use %CONTENT% as the replacement argument.

    Could use a little extra to format it... but that should get you started ;)

  6. babacom
    Member
    Posted 3 years ago #

    Yes - ended up doing something like that using the $data['TITLE']. See: http://community.poppyswap.com/t4/

    Thanks for the hint! This plugin is working out quite well...

  7. Lew Ayotte
    Member
    Plugin Author

    Posted 3 years ago #

    Very nice :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic