• Resolved dmfoneill

    (@dmfoneill)


    I really appreciate this plugin, mostly for the server side functionality but just the same it’s great.

    I have been playing with the issue that when I stack content on a page/post for different dates I get extra lines where there should be no content. My current cure is to put:

    remove_filter( ‘the_content’, ‘wpautop’ );
    remove_filter( ‘the_excerpt’, ‘wpautop’ );

    in the function.php file for the theme in use but I’m afraid that might bite me at some point.

    Do you have any advice?

    Thanks,

    David M. O’Neill

    http://wordpress.org/plugins/timed-content/

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

    (@kjvtough)

    Glad you’re finding it useful.

    If you post an example of what you’re trying to do, I’ll see if I can reproduce your issue, and perhaps I can do something about it.

    -K

    Thread Starter dmfoneill

    (@dmfoneill)

    Thanks for the offer!
    First I’m using a page template that allows me to display only contents:

    <?php
    /**
    	Template Name: plainpage
    
    */
    ?>
    <html>
    <head>
    <style type="text/css">
    body { background-color: #ffffff; }
    #page-content {
    position: relative;
    margin-top: 0px;
    margin-left: 0px;
    }
    </style>
    <title><?php wp_title( '|', true, 'right' ); bloginfo('name'); ?></title>
    <?php wp_head(); ?>
    </head>
    
    <body>
    <?php while (have_posts()) : the_post(); ?>
    <div id="page-content">
    	<?php the_content(); endwhile; ?>
    </div>
    </body>
    </html>

    Then using this template I stack timed content such as:

    [timed-content-server show=”2013-Sep-17 00:01:01 -0400″ hide=”2013-Sep-17 23:59:59 -0400″]<img class=”alignnone size-full wp-image-1144″ alt=”construction” src=”http://wptestsite.fasterlight.net/wp-content/uploads/2013/08/construction.png&#8221; width=”315″ height=”320″ />[/timed-content-server]
    [timed-content-server show=”2013-Sep-16 00:01:01 -0400″ hide=”2013-Sep-16 23:59:59 -0400″]<img class=”alignnone size-full wp-image-1144″ alt=”construction” src=”http://wptestsite.fasterlight.net/wp-content/uploads/2013/08/construction.png&#8221; width=”315″ height=”320″ /><p>Some Text HERE.</p>[/timed-content-server]

    As mentioned in the previous message, if I don’t remove those filters, on rendering each timed content shows a after it. This appears to be a property of WP and not your plugin.

    Regards,

    David

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Plugin Contributor K. Tough

    (@kjvtough)

    What happens when you have both shortcodes on a single line, instead of on separate lines, as you do here?

    Thread Starter dmfoneill

    (@dmfoneill)

    When I concatenate all lines the
    is not generated by WP.

    Although this is good, it may not be practical if I’m stacking 10-20 timed content instances.

    Like I said, I am quite satisfied with the plugin and believe the problem stems from the workings of WP.

    Thanks again,

    David

    Plugin Contributor K. Tough

    (@kjvtough)

    No problem.

    I think you’re right about the wpautop filter; I’ve fought with it many times in my various WP adventures. I agree that having a bunch of timed content instances on a single line would be a pain to maintain. I’ll have to give that some thought on whether there’ a better way to handle it. I’m going to mark this as “Resolved.”

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Break After Blank Content’ is closed to new replies.