padlock | Home home | Tech Chat | Blogs
× close

| NEW TESTAMENT: |
| THE GOSPELS: | Matthew | | Mark | | Luke | | John |

| ACTS of the Apostles: | Acts |
| Romans | | 1 Corinthians | | 2 Corinthians | | Galatians | | Ephesians | | Philippians | | Colossians| | 1 Thessalonians | | 2 Thessalonians | | 1 Timothy | | 2 Timothy | | Titus | | Philemon | | Hebrews |
| James | | 1 Peter | | 2 Peter | | 1 John | | 2 John | | 3 John | | Jude | | Revelation |

| OLD TESTAMENT: |
| Genesis | | Exodus | | Leviticus | | Numbers | | Deuteronomy | | Joshua | | Judges | | Ruth | | 1 Samuel | | 2 Samuel | | 1 Kings | | 2 Kings | | 1 Chronicles | | 2 Chronicles | | Ezra | | Nehemiah | | Esther | | Job | | Psalms | | Proverbs | | Ecclesiastes | | Song of Solomon | | Isaiah | | Jeremiah | | Lamentations | | Ezekiel | | Daniel | | Hosea | | Joel | | Amos | | Obadiah | |Jonah | | Micah | | Nahum | | Habakkuk | | Zephaniah | | Haggai | | Zechariah | | Malachi |



| Home | | Blogs | | Tech Chat | | Contact | | Group Chat |
× close

How to fix the weird codes that displays on the Audio files

Well, this weird codes showed up …

This,

The Word Became Flesh – (John 1:1-18) KJV

.

Became this, after export / import:


The Word Became Flesh – (John 1:1-18) KJV

.
So I will put this code “temporarily” on the functions file of my WP Theme. (Yup it was temporary because the code below didn’t work!  LOL!)

add_filter('the_content', function($content) {
    // Fix encoded double quotes
    $content = str_replace('"', '"', $content);

    // Fix URL-encoded closing quotes
    $content = str_replace('"', '"', $content);

    return $content;
});

.

This one worked:

// Theme snippet to fix audio shortcode quotes on display
add_filter('the_content', fn($content) => str_replace(['"','"'], '"', $content));

.

SOLVED:  So now you see two audio files instead of just one.

Sample why it is important…

Click here:

https://www.christianlifegroups.org/the-word-became-flesh-john-11-18-kjv/

 

Each Topic, story, has a Text File (for the d/Deaf community) and the Audio File (for the Blind Community also).  I will be creating another Audio Bible that is not “plugin dependent” – I already wrote the codes last week and will just have to upload each and every file, but that will be “future-proofing it”, so even if I switch webhosts, or if I graduate from life or something, the next full stack developer who would inherit this project can have documentation on how I built this.  (With God’s help!  🙂 )