cousinjoe2005
Member
Posted 1 year ago #
I recently tried adding some code to my theme that grabs the content of a page and displays it above the posts on my homepage. However, when I do this, the embedded player for the first post shows up under the page content. The rest of the players display properly under the correct post. I've attached the code that is in my theme and a screenshot of the described behavior.
http://pastebin.com/d2rSXDpL
http://yfrog.com/f/h2jt1p/
http://wordpress.org/extend/plugins/podpress/
Joe,
please, try to add the page content a different way. I would suggest an extra (new) WP_query and a further loop. Like in this example http://pastebin.com/hAUZzdC6 . This is from http://codex.wordpress.org/The_Loop#Multiple_Loops_Example_1 (the 3rd of the snippets).
The code inside the loop should be template code of your theme (in the example it is code of the default theme Twenty Ten).
That method works better and shows only a player below the page content if the page has an attached media file.
Regards,
Tim
cousinjoe2005
Member
Posted 1 year ago #
Thanks for the guidance. This worked.