Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor K. Tough

    (@kjvtough)

    Hi, ytilles.

    What shortcode are you trying to use inside the rule. Any shortcodes enclosed within any of the Timed Content shortcodes are supposed to be processed.

    -K

    Thread Starter ytilles

    (@ytilles)

    Thanks for the quick response. I’m using a shortcode for an event registration plugin called Events Planner (https://wordpress.org/plugins/events-planner/). I’m using the Pro version but the shortcode processing should be the same.

    Thanks in advance for your assistance. I’d love to get your plugin working with my setup.

    Plugin Contributor K. Tough

    (@kjvtough)

    Hi, ytilles.

    Events Planner will only process its shortcode if it’s being run in 'the_content' filter. You’ve got a choice as to how to fix this:

    1. Edit Timed Content – Go to ~line 926 in timed-content.php and replace

    return str_replace( ']]>', ']]>', apply_filters( "timed_content_filter", $content ) );

    with

    return str_replace( ']]>', ']]>', apply_filters( "the_content", $content ) );

    Be careful; if you have a rule that calculates a large number of active periods, you may timeout on page loading.

    2. Edit Event Planner – Open /events-planner/system/epl-router.php and comment out lines 72 and 75 (if ( !EPL_IS_ADMIN && ('the_content' == current_filter()) ) { and its matching brace). This will remove the restriction of running only in 'the_content' filter.

    Thread Starter ytilles

    (@ytilles)

    Thank you for looking into this and providing a possible solutions. Much appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Shortcode within timed content rule not working’ is closed to new replies.