• Resolved Nikelaos

    (@nikelaos)


    Got this trouble with feeds… tried to use the_content_feed-Hook with an preg_replace-function, but it seems that this doesn’t work…

    Maybe it’s possible to have an option to supress the functionality and strip footnotes on feed-queries…?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Nikelaos

    (@nikelaos)

    AS I have seen just now, it’s not only on feed content, it’s also on my posts page. I use the Plugin “Advanced Excerpt” – may this cause this?

    Thanks for any help – it don’t looks nice in that state…

    Thread Starter Nikelaos

    (@nikelaos)

    Well, what I have tried to solve this:
    1) Deactivating Advanced Excerpt – that helps, but still a footnote is now within the text – although I have deactivate the footnotes for excerpts in the expert mode-settings.
    2) My footnote markers set to <!--FOOTNOTE_____ and _____FOOTNOTE--> in the hope that it is recognized as a comment. Doesn’t work.
    3) Updated content.php of my theme to:

    if (is_single()) {
       the_content(
    	sprintf(
    		__( 'Continue reading %s', 'twentyfifteen' ),
    		the_title( '<span class="screen-reader-text">', '</span>', false )
    	)
       );
    } else {
       the_excerpt();
    }

    Doesn’t work. Same as 1).

    * At least I tried with

    global $g_obj_MCI_Footnotes;
    remove_filter( 'the_content', array( $g_obj_MCI_Footnotes->MCI_Footnotes_Task, 'the_content' ), PHP_INT_MAX );

    before the the_content(...)-call to remove the approbiate filter in content.php-template of my theme. Doesn’t work.

    May be the code for deactivating is wrong – but I think, for my situation, to use Advanced Excerpt, which is important for me, it seems the right way.

    Could anyone help how to deactivate and reactivate the plugins execution in content.php, when it shows posts on a posts-page?

    Thank you very much!

    Thread Starter Nikelaos

    (@nikelaos)

    Ok, got solved this problem.

    So… the problem was the Advanced Excerpt plugin, as it looks like. There the option ‘Don’t remove any tags’ must be activated, and then in the excerpt – in footnotes expert options the execution in the hook ‘the_excerpt’ is deactivated as well as ‘Allow footnotes on Summarized Posts’ in the general settings – it shows only the footnote index in the excerpt text with the tooltip, but not the footnote.

    That makes sense… good stuff… very good stuff…

    Also the feed content looks good now…

    Thank you for this extremely useful plugin…

    Plugin Contributor Lol Zimmerli

    (@lolzim)

    Hello Nikelaos,

    I am happy you find a solution.

    Best regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘?jQuery( … );? comes up in feed-content’ is closed to new replies.