WordPress.org

Ready to get started?Download WordPress

Forums

Shadowbox JS
Shortcode breaks Shadowbox (1 post)

  1. johnflufin
    Member
    Posted 1 year ago #

    The following shortcode function to pull content from another post breaks Shadowbox's ability to apply the rel attribute to the appropriate links. I'm guessing apply_filters is overriding SB plugin functionality but I'm not sure. Suggestions?

    function digwp_includeContentShortcode( $atts ) {
              $thepostid = (int) $atts['postidparam'];
    
              if ( ! $post = get_post( $thepostid ) )
                   return '<em>Invalid post/page ID.</em>';
    
              return apply_filters( 'the_content', $post->post_content );
    }
    add_shortcode("digwp_include", "digwp_includeContentShortcode");

    http://wordpress.org/extend/plugins/shadowbox-js/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.