[Support request] Place category above Title

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Place category above Title

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27097
    Dave
    Participant

    I would like to place the category above the title but below the featured image using the Base Card.
    Is there a way to do this?

    Cheers,

    Dave

    #27121
    elvin
    Moderator

    Hi there,

    It’s defintely possible.

    Add this PHP snippet:

    add_action('wpsp_before_title',function(){
    	echo get_the_term_list( get_the_ID(), 'category', '', apply_filters( 'wpsp_term_separator', ', ' ) );
    });

    And make sure the “Include terms” is unchecked on the WPSP list’s Meta Tab setting so there’s no duplicate display.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.