I figured out the issue. In those themes with post formats, StudioPress is doing something similar to me but later down the page. It’s overriding the Genesis Title toggle plugin.
At the very top of the page ( on the ‘genesis_before’ hook) I’m running my code to see if a title should be removed.
Right before a post is loaded (on the ‘genesis_before_post’ hook), Tapestry removes all post titles, then checks to see if the current post is in a post format, and if it isn’t it adds back the post titles. This adding back is what overrides our original selection.
I have a fix which works in Tapestry (and I assume all the other ones too), but I want to do more testing before I add this to the plugin.
If you’d like to use it on your copy, here’s the two lines of code to add at the top (inside the init() function): https://gist.github.com/1391552
Actually, add this to your theme’s functions.php file: https://gist.github.com/1391569
This way you don’t have to modify the plugin.
Thanks I’ll give it a shot….Have a great weekend, and Thanksgiving if you celebrate it.
Scott
Just as an FYI I added the second set of code to the functions.php and it worked like a charm in the lifestyle theme.
Thanks so much. (when or if you add a permanent fix to the plugin, will I need to remove that code from functions.php? Obviously if the theme files are ever updated I’ll have to add the code back as well so I saved it.)
Scott
If/when this is added to the plugin, having that code in your theme won’t cause any issues. It will simply be telling WordPress to remove the title twice (the second time nothing will happen). But it won’t be necessary.
I probably won’t include this in the plugin. If the plugin in its current form doesn’t work, it means that your theme is also doing some title removal. While the code I gave you will work for the two studiopress themes I’ve tested it on, there’s no guarantee it will work for every theme that changes the titles (it depends on them using the exact same hook as lifestyle).