• Resolved justinjwilson

    (@justinjwilson)


    I finally understand why “the_excerpt” doesn’t load correctly with this plugin. The reason is it’s attempting to load the first x number of characters first, and for some of our posts, I had to add in a style tag to do a quick fix. Or, I had something I commented out, and instead of showing actual rendered content, starting with the first paragraph tag, for instance, it pulls the uncommented characters first, so nothing shows.

    You should also note that if you add CSS to an announcement to display: none on certain elements, such as the .timeline-express-single-page-announcement-date, it breaks the entire announcements feed. At least it does for us: we’re using the X Theme with latest updates. Not sure if it can be recreated if you’re not using that theme. Worth looking into, though.

    https://wordpress.org/plugins/timeline-express/

Viewing 1 replies (of 1 total)
  • Plugin Author Evan Herman

    (@eherman24)

    Hi,

    You shouldn’t be writing inline styles or scripts inside of your announcement editor (or any post type for that matter). This is going to have some adverse effects on the way the containers are generating excerpts.

    Some of our users have insisted on maintaining HTML inside of the excerpt. The default WordPress excerpt function does not preserve the HTML so we had to write out own function.

    It’s best to avoid writing anything other than standard text inside of the content editor.

    If you need to load custom styles or scripts it’s best to do so using the wp_enqueue_scripts hook with a conditional to check the current $post->ID.

    Thanks,
    Evan

Viewing 1 replies (of 1 total)
  • The topic ‘Suggestion for loading the_excerpt’ is closed to new replies.