• Resolved Jon Schroeder

    (@jonschr)


    Bill, I use your plugin on probably 20 of my sites – always without issue. Great work!

    However, on one site I’m developing, I’m using post formats to allow for sorting of video posts. As soon as I add theme support for the post format, the title toggle plugin stops working.

    Here’s the code that breaks it (in the functions file):

    add_theme_support( ‘post-formats’, array( ‘video’ ) );

    All I really need is for pages (not posts, necessarily), to be able to toggle titles, and I’m not really sure why this should affect things. Any ideas as to what’s happening? I’d be happy to provide any more information that might help.

    https://wordpress.org/plugins/genesis-title-toggle/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    Ah I see what the problem is. We refactored the code recently, and it looks like the code relating to post formats didn’t include the HTML5 hook for Genesis.

    I’ll release an update shortly that addresses this.

    In the StudioPress themes that use post formats, they hook onto genesis_before_post and conditionally add/remove the post title based on the format. So in this plugin, we run the ‘title_toggle’ code on genesis_before_post with a later priority to hide the title if you have post formats enabled..

    Thread Starter Jon Schroeder

    (@jonschr)

    Thanks so much for the fix! I’ll update when it comes and respond back either way so that you know whether it’s working or not.

    Thread Starter Jon Schroeder

    (@jonschr)

    I just updated, and it’s working great! Thanks so much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conflict when using post formats’ is closed to new replies.