WordPress.org

Ready to get started?Download WordPress

Forums

Flash not working on theme? (4 posts)

  1. mkcc
    Member
    Posted 4 years ago #

    Hi.

    I have a wordpress site at http://www.mkcc.ca

    I am using the audio-player plugin and it works fine when you go directly on the post page but on the home page, it shows something like

    Sample test for audio!! Audio clip: Adobe Flash Player (version 9 or above) is required to play this audio clip. Download the latest version here. You also need to have JavaScript enabled in your browser.AudioPlayer.embed("audioplayer_3", {soundFile:"aHR0cDovL21rY2MuY2EvaG9tZS9hdWRpby9pY2Fub25seWltYWdpbmUubXAzA"});

    Thank you very much

  2. mkcc
    Member
    Posted 4 years ago #

    Is the theme the problem?

  3. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    My guess is that your home page template uses the_excerpt() instead of the_content(). Some plugins - especially those that use shortcodes - need the formatting functionality of the_content() to parse the shortcodes and turn them into content for display. The options are:
    - change themes
    - edit your current theme's index.php template
    - ensure that your audio files are placed after the initial content used for the post excerpt on the home page
    - create a custom excerpt for each post using the Optional Excerpt on the Edit Post page.

  4. mtw28
    Member
    Posted 4 years ago #

    The problem is that the plugin you're using, Audio Player, only adds a filter to the_content() function. Most themes only use that on posts and pages, not indexes where they use the_excerpt() instead for a short summary.

    If you edit index.php and replace the_excerpt() with the_content() it will work, but it will also display the full post on your index page.

    Another long shot could be to edit the plugin file /wp-content/audio-player/audio-player.php and change

    // Add filter hook
    add_filter('the_content', 'ap_insert_player_widgets');

    to

    // Add filter hook
    add_filter('the_content', 'ap_insert_player_widgets');
    add_filter('the_excerpt', 'ap_insert_player_widgets');

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.