We're merging with GenerateBlocks! Learn more here.

[Support request] Shorten title

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Shorten title

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #12319

    Hello tom.

    Can we shorten title on WPSP. For example the title is “How to cook a chicken” I want it to display only “cook a chicken”.

    Assume All front title “How To” is the same for all my post title.


    Hi there,

    The only way to do this really is to create a custom field for your separate title. Then you’d need to hide the standard title in the WPSP settings and hook the custom field into the list like this:

    add_action( 'wpsp_before_content', function() {
        $custom_title = get_post_meta( get_the_ID(), '_your_custom_field', true );
        if ( $custom_title ) {
            echo '<h2>' . $custom_title . '</h2>';
    } );
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.