WordPress 3.9 beta 2 • WordPress Help

 wordpress 3.9 Beta 2 of WordPress 3.9 has just come out, with hundreds of changes since beta 1 released last week.

So, in addition to the news WordPress 3.9 which we already saw in the announcement of beta 1 these are some of the new ones in this version.

Of course, it's still a beta, so, download it try it as such and warn if you find a fault. You can also try it here .

Insert Player in Categories and their respective entries • WordPress Help

On a first theme on my page, like insert a goear player with automatic playback ; then I went a little further and explained how to insert a different player in pages of specific categories in WordPress the last thing left me can say that I was left with a certain air of dissatisfaction, since I could hear the corresponding player when I was on the page of the category to which I had assigned it, however, this did not happen when I visualized an entry in one of those categories and only the general player was heard.

Investigating a little more about the subject I found in the WordPress codex a function that allowed me to do what I wanted, it is the function in_category .

… we can use this function to do different things, such as inserting a header, footer or even a different design by category or page ( I think all this would be summarized using a similar function but to show a different style sheet rente according to the page where we are ) …

The inclusion is simple, we use is_home to insert a code or function that will be displayed on the main page; in_category ('category-x') to insert a code or function that will be displayed in the specified category including its entries; therefore, the previous function that we had in the following way:

This code will allow us to show a different player for each category specified and in the entries that correspond to it; for sample you can try entering the categories: death-note, naruto-shippuden and, mas-sabe-el-diablo and their corresponding entries.

I hope this tutorial has been helpful, so with a specific example we can use this function to do different things, such as insert a header, footer or even a different design by category or page ( I think all this would be summarized using a similar function but to show a different style sheet according to the page where we are ), page and even in the entries according to the category to which it belongs, just need to use a little imagination and start our projects …

NOTICE : this publication is from two years or more. If it's a code or a plugin it might not work in the latest versions of WordPress, and if it's a news story it might be obsolete. Then do not say we have not warned you.

Loading …

That may also help you:

Embed an MP3 file with link to download with shortcode …

It seems that I have become accustomed to shortcodes; the fact is that I am avoiding the use of plugins as much as possible; and based on the requirements I have for my website, because I have created a shortcode to embed mp3 files with their respective link; that is, the player itself to listen to the audio and the link to download the corresponding file.

The player that I have used is the xspf slim version, that is, the simple mode; you can download the following link: XSPF Player Slim Version

The file brings the .fla file and the actionscript; but the one that we are going to use is the xspf_slim_player.swf that we upload to a folder of our server; it could be the music folder or the one that they want.

As I already formatted it in the same code, the visualization will be as follows:

I hope you have served them, you can see it working in http: //www.contigoperusemanario.org/ringtones

NOTE: They have to change http://mydomain.com for their domain or the player's path.