Latest Podcast widget error

Support Area › Forums › Epic › Latest Podcast widget error

Viewing 7 posts - 1 through 7 (of 7 total)
URL to the page in question:
  • Author
    Posts
  • #12906
    Charles Smith
    Participant

    Bill,
    I noticed this evening that the Latest Podcast widget is not showing correctly on the Staff Page…

    Latest Podcast shows correctly on home page: http://www.pvumc.net/

    Latest Podcast shows correctly on blog page: http://www.pvumc.net/category/blog

    Latest Podcast does not shows correctly on staff page (march 10, 2013): http://www.pvumc.net/staff-group/professional

    i tried deleting the widget and recreating… but the same podcast is shown…

    Any thoughts? Seems odd that it works every where but one place…

    #12907
    Bill Robbins
    Participant

    That is unusual. Can you remove the widget and have it actually leave the sidebar?

    #12908
    Bill Robbins
    Participant

    Have you tried it with your caching turned off? How about all plugins?

    #12912
    Bill Robbins
    Participant

    I believe I figured out why the wrong podcast is showing up there. In order to have the staff groups order set properly, we use a WordPress function called pre_get_posts which alters the main query before it’s run.

    That is set inside a theme file called queries.php.

    Evidently that alteration is affecting the podcast widget when it’s used with a staff group. It wouldn’t be affected if you’re using the staff page template, but only a staff group.

    At this point though, I don’t know of a way to fix that. I’d hate to switch either one to a query_posts as it’s a lot less efficient.

    Let me work with it and see what I can cook up.

    #12913
    Bill Robbins
    Participant

    Actually a friend on Twitter just helped me out. I’ll roll this into the next theme update, but you can update your theme before then. Here’s how:

    1. Go to the Appearance section in your WordPress control panel and select Edit.
    2. From the list of files on your right, choose queries.php
    3. Replace all the content there with this:
    4. Save your changes.

    See if that doesn’t work out better for you,
    Bill

    #12914
    Charles Smith
    Participant

    Thanks Bill… That did it…

    #12915
    Bill Robbins
    Participant

    Glad to help. Sorry for the trouble.

    Enjoy your weekend!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Latest Podcast widget error’ is closed to new replies.