• Resolved padre.cedano

    (@padrecedano)


    Hi.

    I don′t know why footnotes not works with content read from Mysql database in another table (not wp_posts table).

    The encoding for this table is utf8_spanish_ci

    If i have this content into the table:

    Escuchaste hoy al bienaventurado Pablo, el padrino de boda [note]Nymphayogós -término frecuente en san Juan Crisóstomo- era el que conducía a la esposa en el cortejo nupcial; del correspondiente latino derivó en castellano antiguo ?paraninfo?[/note] de la Iglesia, que, escribiendo, decía: De modo que si alguno está en Cristo, nueva creación es (2 Co 5, 17).

    when i print this content via php i don’t have the footnote. If i copy and paste the same content into WordPress post editor, and i show a preview, the footnote is showed correctly.

    I try with another footnotes plugins and i have the same problem.

    Here you have an example: https://www.deiverbum.org/jn-16_20-23a/

    Any help?

    Thanks.

    https://www.ads-software.com/plugins/easy-footnotes/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jason Yingling

    (@yingling017)

    Hi there, it sounds to me like you may need to pass the data you’re printing through the_content filter. So if you were to store what you print in $spanish_content you would then actually print it out with:

    <?php echo apply_filters( 'the_content', $spanish_content ); ?>

    That will run the content through the WordPress content filter and should actually parse the shortcodes properly.

    The plugin does this by hooking to the the_content filter when post data is printed using the the_content() function. If you’re printing from a different database and not using the_content(), running it through the filter should help.

    If that doesn’t work you could also take a look at the do_shortcode() function https://developer.www.ads-software.com/reference/functions/do_shortcode/

    Plugin Author Jason Yingling

    (@yingling017)

    Since I haven’t heard from you in awhile I’ll mark this topic as resolved. Let me know if you have any other questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not working with content from database printed by php’ is closed to new replies.