WordPress.org

Ready to get started?Download WordPress

Forums

podPress
[resolved] Player doesn't show up in correct position (3 posts)

  1. cousinjoe2005
    Member
    Posted 3 years 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/

  2. ntm
    Member
    Plugin Author

    Posted 3 years ago #

    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

  3. cousinjoe2005
    Member
    Posted 3 years ago #

    Thanks for the guidance. This worked.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags