Replace audio links with jplayer using the_content filter

You well need to add a filter to the_content and alter the markup. This should replace the markup for <a> tags having URLs ending in .mp3, which you mentioned specifically in a comment. function replace_audio_link_cb_105555($match) { if (!empty($match[1]) && ‘.mp3’ == substr($match[1],-4)) { $your_long_block_of_markup = ‘<div id=”jquery_jplayer_#uniqueid” class=”jp-jplayer”></div> <div id=”jp_container_#uniqueid” class=”jp-audio”>… and so on …</div>’; … Read more

How to show full post?

WordPress don’t have a function show_content. Content in wordpress is displayd using the_content(). The excerpt is displayd using the_excerpt(). Just a point of note, move your WP_Query outside your if statement and change if ( have_posts() ) to if ( $wp_query->have_posts() )

get query() without post content?

If you set the fields argument to ids in your query it will return only post IDs which you can then pass to other functions to fetch the data you need. Though that may save memory at the cost of increasing queries to the database.

Execute Closing Shortcode After the_content

Maybe I misunderstand what you are doing, and I apologize if that is the case, but… It looks like you are returning content if the post DOES NOT already have one, which looks backward to me based on my understanding of your problem. It looks like you are trying to execute a broken (incomplete) shortcode. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)