Latest Podcast widget error
URL to the page in question:
-
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…
That is unusual. Can you remove the widget and have it actually leave the sidebar?
Have you tried it with your caching turned off? How about all plugins?
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.
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:
- Go to the Appearance section in your WordPress control panel and select Edit.
- From the list of files on your right, choose queries.php
- Replace all the content there with this:
- Save your changes.
See if that doesn’t work out better for you,
Bill
Thanks Bill… That did it…
Glad to help. Sorry for the trouble.
Enjoy your weekend!
- The topic ‘Latest Podcast widget error’ is closed to new replies.