Support » Fixing WordPress » Flash not working on theme?

  • 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mkcc

    (@mkcc)

    Is the theme the problem?

    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.

    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');

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Flash not working on theme?’ is closed to new replies.