• H2GD Part 16.17: excerpts for pages

    This page is about “excerpts for pages” One of my customers was having some challenges with the [bw_pages] shortcode where it was pulling in too much information from before the <!--more --> tag. I suggested using a hand written excerpt. But then I realised that the ‘page’ post_type doesn’t include support for Excerpt fields.

    I ummed and aahed about adding it to the oik base plugin before deciding to create a new oik-post-type-support plugin. Although the only thing that it does right now is to add post type support of Excerpt to pages add_post_type_support( 'page', 'excerpt' ); I have plans to extend it to be able to support a range of custom post types. Then there’s other things that can be added.

    I’ve already discovered a few side effects with just this one line of code, so while I’m waiting for something else to finish I thought I’d start writing them down.

    1. Excerpts don’t go away when the plugin is deactivated – so an uninstall routine may be needed
    2. If you use to list pages within a blog post then you can get more than one More link.

    I’ve yet to perform the problem determination for these problems.

    Meanwhile the plugin is available for FREE download from oik-plugins: oik-post-type-support.

    Update May 2015… nowadays I use the oik-types plugin. It’s more complex but has far more capability.



    Published:

    Last updated:

    May 14, 2015

Categories

Tide times from tidetimes.co.uk

Tide Times & Heights for Langstone Harbour on
Sunday, 05 December 2021
Low Tide:04:44 ( 0.70m )
High Tide:11:51 ( 5.10m )
Low Tide:17:08 ( 0.60m )

Tide times from tidetimes.org.uk

Tide Times & Heights for Northney on
5th December 2021
04:44 Low Tide ( 0.47m )
11:47 High Tide ( 5.12m )
17:11 Low Tide ( 0.33m )