WordPress.org

Forums

BlogText
[resolved] BlogText for Events Manager (6 posts)

  1. rudomilov
    Member
    Posted 2 years ago #

    Hi,

    I use Events Manager plugin and would to write event notes in BlogText.

    Editor is ok, all buttons are shown. But event page is not affected, markup is not recognized. How I can solve it?

    http://wordpress.org/extend/plugins/blogtext/

  2. rudomilov
    Member
    Posted 2 years ago #

    I can prepare a add_filter. But which BlogText function/method I should call to process a string?

  3. rudomilov
    Member
    Posted 2 years ago #

  4. Sebastian Krysmanski
    Member
    Plugin Author

    Posted 2 years ago #

    Good to know.

  5. rudomilov
    Member
    Posted 2 years ago #

    I have a problem in case of this solution:

    add_filter('em_event_output_placeholder','my_em_placeholder_mod',1,3);
    function my_em_placeholder_mod($replace, $EM_Event, $result){
    	GLOBAL $post;
    
    	if ( $result == '#_EVENTNOTES' ) {
    		$replace = $EM_Event->post_content;
    		$markup = new BlogTextMarkup();
    
    		if (is_preview()) {
    			$is_excerpt = false;
    			$render_type = AbstractTextMarkup::RENDER_KIND_PREVIEW;
    		} else if (is_feed()) {
    			$render_type = AbstractTextMarkup::RENDER_KIND_RSS;
    		} else {
    			$render_type = AbstractTextMarkup::RENDER_KIND_REGULAR;
    		}
    	$replace = $markup->convert_post_to_html($post, $replace, $render_type, $is_excerpt);
    
    	}
    	return $replace;
    }

    BlogText does not process new lines or double new lines into <br /> and <p></p>, respectively. How i can tell BlogText to process new lines?..

  6. Sebastian Krysmanski
    Member
    Plugin Author

    Posted 2 years ago #

    BlogText doesn't replace newlines because WordPress does this itself (when using BlogText in the regular fashion). If you really need this, you can create a feature request over at bitbucket.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BlogText
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic