• Hi all,

    Just been playing around with the 2014 theme and the ephemera widget to show recent videos in the side bar.

    It works fine on the main page (post content is parsed up until the read more link) but as soon as you click into a post the widget displays recent videos, ignores the more link and shows the entire post content.

    For example, consider a post set to the video type with the following content:

    “Random Youtube Video”

    Read More –>

    Look its a random video, hope you enjoyed it

    On the main page all you get from the widget is:

    “Random Youtube Video”

    Read More –>

    Inside a post you get:

    “Random Youtube Video”

    Read More –>

    Look its a random video, hope you enjoyed it

    Its not too bad when you have short posts but things with lots of writing or contact forms etc really start to look odd.

    I’m assuming its a missing if check in the inc/widgets.php file but I’m not familiar enough with WP to know what to change.

    Any ideas?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Can you post a link to a page demonstrating the problem?

    Thread Starter waynemerricks

    (@waynemerricks)

    Sidebar Video Ephemera works fine:

    https://thevoiceasia.com/video/

    Sidebar Video Ephemera shows all the post content:

    https://thevoiceasia.com/video/2014/01/breakthrough-short-film/

    I was using a 2014 child theme, I’ve changed it back to pure 2014 for the purposes of this example (I may be reactivating the child theme later so if it doesn’t look vanilla be aware that nothing screwy is going on with the css except for changing a few colours and what not).

    I cannot replicate your problem in 2014. Have you deactivated all plugins?

    Thread Starter waynemerricks

    (@waynemerricks)

    Tried without any plugins, same result.

    The only ones I were using:

    Formidable (Form builder)
    WP Most Popular
    YARPP

    Looking at widgets.php more closely. The problem is within the call to:

    the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyfourteen' ) );

    Reading from the codex:

    Displays the contents of the current post. This template tag must be within The_Loop.

    The <!–more–> quicktag will not operate and is ignored in Templates where just one post is displayed, such as single.php

    This makes sense as a single post would display in single.php so now I’m even more confused why you get correct cut off at more and I don’t.

    Thread Starter waynemerricks

    (@waynemerricks)

    OK found a quick solution, in inc/widgets.php you need to over ride the value of the more global inside the entry div (and to be safe you could change it back afterwards but it doesn’t seem to cause any issues).

    On line 109 just after <div class="entry-content"> you need to add the following:

    <?php global $more;
      $more = 0;
    ?>

    Personally I consider this a bug in the theme and that confuses me even more why you don’t get the same result.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Theme TwentyFourteen] Ephemera Widget problems/bug?’ is closed to new replies.