WordPress.org

Ready to get started?Download WordPress

Forums

FT Calendar
Pull in an event's excerpt (suggestion and simple solution) (1 post)

  1. B1gJ4k3
    Member
    Posted 2 years ago #

    Hey guys. I'm diggin' the plugin. While I've been working with it, I've felt the need to be able to pull in some kind of short event description or the excerpt from the event when pulling in a list view with a shortcode. After a little playing around, I stumbled across a pretty easy way to accomplish it.

    Around line 148 in class-shortcodes.php, if you add something like:

    $data['DESC'] = get_the_excerpt( $post->ID );

    you can use "%DESC%" in your shortcode arguments to pull in the excerpt for the event (which is essentially a post or a blog post anyway). Just thought I'd share in case anybody else was looking for this functionality.

    But of course, now I've essentially guaranteed that I can't update the plugin, but regardless, it might be something to include in future releases?

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by B1gJ4k3
  • This topic is not a support question
  • WordPress version: 3.2.1