Support » Plugin: Display Featured Image for Genesis » Include Archive Description under the title on a CPT?

  • Resolved Anders Carlén


    Hey Robin,

    Is there a way to use functions or filters to include the archive description in the overlay, just below the title (but on top of the featured image) for a custom post archive?

    In this case it’s the people plugin that I’m working on, and it would be great to have just a short line or so under the title.

    I took a look at the source code and it seems that you might have prepared some things for that to be easy, but I can’t quite piece together how to add it in.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Robin Cornett


    So you have a couple of options, at least: an action hook or a filter. I’ve used the display_featured_image_genesis_before_title hook to add a widget area to the overlay; you could use the corresponding display_featured_image_genesis_after_title hook to add the archive description (tutorial).

    Alternatively, there is a filter hook for the title within the overlay: display_featured_image_genesis_modify_title_overlay. You could use that and just append the archive description to the title without modifying the title itself.

    Another option would be to use the plugin’s “move excerpts” option, which would automatically move all excerpts (if they exist) and category/cpt archive descriptions where you want them. You could use the display_featured_image_genesis_omit_excerpt filter to remove the behavior on non archive pages, if you don’t want the excerpts moved in general.

    If you use either of the first two, you would also need to remove the default archive description so that it isn’t duplicated.

    Hope that helps you get started–

    Sweet. Perfect, and thanks for even given options!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Include Archive Description under the title on a CPT?’ is closed to new replies.